Perl-Sensitive Sunglasses | |
PerlMonks |
Re: conditional syntax optionsby mzedeler (Pilgrim) |
on Jun 28, 2009 at 16:12 UTC ( [id://775476]=note: print w/replies, xml ) | Need Help?? |
If you want to check against a lot of constants, you can grep: if(not grep {$string eq $_} qw{ X Y })You can extend the list with X and Y as much as you like. Using it on two values only is overkill.
In Section
Seekers of Perl Wisdom
|
|