my @companies = ("AOL Time Warner", "Genetech","Broadwing"); my $companies = join('|',map(quotemeta, @companies)); $companies = qr/($companies)(.*?)/is; while ($content =~ /$companies/g) { print "Company: $1 new coverage: $2\n"; }
In reply to Re: foreach loop with nested
by runrig
in thread foreach loop with nested
by cdherold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |