laziness, impatience, and hubris | |
PerlMonks |
Re: Need help testing to see if a variable is one value or the otherby moritz (Cardinal) |
on Jan 30, 2008 at 21:16 UTC ( [id://665219]=note: print w/replies, xml ) | Need Help?? |
if ($var eq "yes" or $var eq "no"){ ... } will do the job.
The way you write it is planned for Perl 6:
In Section
Seekers of Perl Wisdom
|
|