in reply to boolean IN(); function in perl like
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: boolean IN(); function in perl like
by adamk (Chaplain) on Jan 17, 2005 at 03:50 UTC | |
by Errto (Vicar) on Jan 17, 2005 at 04:31 UTC |
In Section
Seekers of Perl Wisdom