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 ) . . .
In Section
Seekers of Perl Wisdom
in reply to How to find out if X is an element in an array?
if ( $tofind ~~ @in ) . . .