in reply to Match multiple words in a string ?
foreach $output (@output) { if ($output =~ /$str_to_find/) { print "$output\n"; } } [download]