in reply to How to check whether my array contains element x
See the function "any" in List::MoreUtils. It does exactly what you ask.
Bill
|
---|
In Section
Seekers of Perl Wisdom