my @matches = grep index( $lineFromSomeFile, $_ ) > -1, @terms;