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 ) [download]