in reply to
How to find out if X is an element in an array?
Try using the modern
"smart match" operator
:
if ( $tofind ~~ @in ) . . .
[download]
Comment on
Re: How to find out if X is an element in an array?
Download
Code
In Section
Seekers of Perl Wisdom