in reply to Re: Would you use a switch instead?
in thread Would you use a switch instead?

Perl has no switch statement

There is the switch module or given/when, etc. Plus, you can mimic a switch with if/else's (although I never liked doing so).