|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Regarding speed: Is elsif or just if faster?by Spidy (Chaplain) |
| on Feb 25, 2007 at 00:36 UTC ( #601942=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Spidy has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, all.
Lately, a lot of my code has had to do a lot of conditional juggling, based on the values passed to it. This is a piece of example code: And it's fast enough for me, but it has me wondering: is it faster to use elsif for this, or to just chain the statement into a whole pile of if statements? Thanks, Spidy Edited Addendum: I am not actually working on optimizing any of my code. I am simply curious.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||