No such thing as a small change | |
PerlMonks |
Re: Like in hashes, do we have something like exists in arrays as well.by rjimlad (Acolyte) |
on Jul 19, 2002 at 20:28 UTC ( [id://183443]=note: print w/replies, xml ) | Need Help?? |
Yes. Grep.
...this is actually equivalent to a foreach loop, so don't do it for big arrays. There is no quick way to do that - if you must, use hashes instead. The above (last line) is more-or-less equivalent to: HTH. Originally posted as a Categorized Answer.
In Section
Seekers of Perl Wisdom
|
|