in reply to Pattern match array
$wanted = qr(something); if( grep { $_ =~ $wanted } @prims ) { print "hurray!\n" } [download]
I'm pretty sure you want the Fletch or the mortiz solution though.
-Paul