|
|
| There's more than one way to do things | |
| PerlMonks |
Re: OR sequenceby ikegami (Patriarch) |
| on Mar 21, 2008 at 22:38 UTC ( [id://675544]=note: print w/replies, xml ) | Need Help?? |
|
|| does not form a list of operands to pass to another operator. There's isn't such an operator in Perl5 (but I bet there is in Perl6). Of its two operands, it returns the first one that is true. What you want is
You can remove the redundancy with a loop
Is there a reason you didn't apply my suggestion to change
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||