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


in reply to One line assigment statement with regex match

If the words in @terms are litterals, you could try:
($match) = grep { $lineFromSomeFile =~ $_ } @terms;

Paul