http://qs321.pair.com?node_id=977901


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 ) . . .