$wanted = qr(something); if( grep { $_ =~ $wanted } @prims ) { print "hurray!\n" }
I'm pretty sure you want the Fletch or the mortiz solution though.
-Paul
In reply to Re: Pattern match array
by jettero
in thread Pattern match array
by aennen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |