in reply to Need help testing to see if a variable is one value or the other
if ($var eq "yes" or $var eq "no"){ ... } will do the job.
The way you write it is planned for Perl 6:
if $var eq any <yes no> { ... }
In Section
Seekers of Perl Wisdom