Just another Perl shrine | |
PerlMonks |
Re^2: boolean IN(); function in perl likeby RhetTbull (Curate) |
on Jan 15, 2005 at 18:51 UTC ( [id://422537]=note: print w/replies, xml ) | Need Help?? |
One word of caution when using grep -- it will find all occurrences of $e in @a so if @a is large or there are a lot of occurrences of $e it will take longer than just looking for the first occurrence. You might also want to look at the any function in List::MoreUtils.
In Section
Seekers of Perl Wisdom
|
|