Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: if or switch?by pc88mxer (Vicar) |
on Jul 10, 2008 at 22:52 UTC ( [id://696846]=note: print w/replies, xml ) | Need Help?? |
What are your actions for each of the three cases?
If they are very different, then a dispatch table or a Perl6 switch statement is about the most efficient. If the code for all three cases is very similar, then perhaps this can be made to work for you:
In Section
Seekers of Perl Wisdom
|
|