![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: Using IF and OR, I'm sure there is a better wayby robin (Chaplain) |
on Dec 16, 2005 at 01:40 UTC ( #517123=note: print w/replies, xml ) | Need Help?? |
In Perl 5.10, you'll be able to do:
which will indeed short-circuit. (I'm backporting the Perl 6 "smart match" operator to Perl 5.)
In Section
Seekers of Perl Wisdom
|
|