my ($found, @set); @set = qw(one two three); $found = map { 1 if $set[$_] eq $element } 0..$#set; if ($found) { ... }
In reply to Re: Set Operators
by greenback
in thread Set Operators
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |