in reply to Re^2: if or switch?
in thread if or switch?

chromatic - are you red flagging (or yellow-flagging) the use of the switch statement ?

If so, could you specify which version you had bad experience with ?

Was this an esoteric case ?

Your response could help the community either toward reproducing and fixing bugs, or by directing programming practices based on your recommendation.

     Have you been high today? I see the nuns are gay! My brother yelled to me...I love you inside Ed - Benny Lava, by Buffalax

Replies are listed 'Best First'.
Re^4: if or switch?
by chromatic (Archbishop) on Jul 11, 2008 at 20:56 UTC

    See the documentation for the core Switch module. given/when in Perl 5.10 is more robust, and Perl 6 works effectively.

    The failure case isn't too esoteric; the use of regular expressions in your code can confuse Switch.