http://qs321.pair.com?node_id=665219


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> { ... }