The way you write it is planned for Perl 6:
if $var eq any <yes no> { ... }
In reply to Re: Need help testing to see if a variable is one value or the other
by moritz
in thread Need help testing to see if a variable is one value or the other
by paulehr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |