This doesn't seem to be the most elegant or effecient way to do this. Can anybody recommend a better practice?my $bigpattern = '(' . join('|',@patterns) . ')'; while (my $inputline = <FILE>) { if ($inputline =~ /$bigpattern/io) { ## Logic goes here } }
In reply to Bulk Regex? by meetraz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |