http://www.perlmonks.org?node_id=607518


in reply to Re: *IN* Operator for the Perl wish list
in thread *IN* Operator for the Perl wish list

Rather than "grep", I would use List::Util's "first" function, because that short-circuits on the first match, rather than always trying all of the elements.

Liz