Perl: the Markov chain saw | |
PerlMonks |
Re: If any element-in-array comparisionby davido (Cardinal) |
on Jan 27, 2012 at 17:53 UTC ( [id://950427]=note: print w/replies, xml ) | Need Help?? |
When the problem description contains the word "any" in the context of a list of items, List::MoreUtils::any seems like an ideal fit.
I've seen List:Util::first mentioned a couple of times, and agree that will work fine. I recommend List::MoreUtils::any, however, as its meaning and intent is clearer since it has a name that matches the problem. Dave
In Section
Seekers of Perl Wisdom
|
|