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.
In Section
Seekers of Perl Wisdom
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.