http://www.perlmonks.org?node_id=356884


in reply to regex match in array

That's a really wierd way to search for elements in an array. But if you really want to do it that way, use grep in void context.

( grep { /TE(.)M/i } @myTerms )
/me hides away

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/