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
In Section
Seekers of Perl Wisdom