in reply to Re: something like switch(case) in Perl
in thread something like switch(case) in Perl

Hi Grep... I want ask about the switch statement that you have suggested.. About the speed... will it be just the same with:
If(...=~...){ do something } elsif(....=~)( do some other thing } ... else {...}
Since it also compares the $_ with /.../. Thanks...