Just another Perl shrine | |
PerlMonks |
Re: Check multiple array elements for a single conditionby TheDamian (Vicar) |
on Aug 25, 2016 at 12:03 UTC ( [id://1170412]=note: print w/replies, xml ) | Need Help?? |
You could also use the Smart::Match module with smartmatching:
Or you could do exactly the same thing "natively", in Perl 6: Damian
In Section
Seekers of Perl Wisdom
|
|