I'm surprised no one mentioned List::Util's "first" routine yet.
first {$_ eq $e} @aI'm not sure this works properly if $e is undef, though.
In reply to Re: boolean IN(); function in perl like
by premchai21
in thread boolean IN(); function in perl like
by Frank John
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |