|
|
| Just another Perl shrine | |
| PerlMonks |
Re^2: *IN* Operator for the Perl wish listby liz (Monsignor) |
| on Mar 30, 2007 at 16:31 UTC ( #607518=note: print w/ replies, xml ) | Need Help?? |
|
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
In Section
Meditations
|
|
||||||||||||||||||||||||