You also could use one of (Quantum::Superpositions, Perl6::Junction, List::Util::Superpositions). Then it would look something like
die "blah bla\n" if $name ne any( @array );
-Bryan
In reply to Re: searching an array
by mrborisguy
in thread searching an array
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |