In Perl6, you'll be able to use something very close to this syntax, though.
### <Perl6> if ($color eq ("red" | "blue" | "green")) {} if ($color eq any("red", "blue", "green")) {} ### </Perl6>
kelan
Perl6 Grammar Student
In reply to Re: OR operator
by kelan
in thread OR operator
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |