There's more than one way to do things | |
PerlMonks |
Re: Best option for "switch/case" functionality?by perlfan (Vicar) |
on Jun 27, 2016 at 19:40 UTC ( [id://1166690]=note: print w/replies, xml ) | Need Help?? |
If your cases don't need to be evaluated conditionally, I like to use a hashref:
YMMV,
In Section
Seekers of Perl Wisdom
|
|