Keep It Simple, Stupid | |
PerlMonks |
Re: Efficiency of multiple if statementsby Anonymous Monk |
on May 09, 2001 at 12:02 UTC ( [id://79041]=note: print w/replies, xml ) | Need Help?? |
It may be more efficient to do the regex tests first, and short circuit the more expensive file test
In Section
Seekers of Perl Wisdom
|
|