<[EMAIL PROTECTED]> wrote: > > The Advantage is you get to use the switch statement. The disadvantage is > your code will run extraordinarily slow because the Switch module uses a run time > Filter. In short: isn't an is-elsif-else statement enough??
Are you saying that 'if-elsif-else' is a compile-time filter? It isn't. So I guess 'if-elsif-else' runs extraordinarily slow too. AFAIK Switch allows coding that runs no more slowly than 'if', and lets you express some solutions much more neatly. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>