Some suggestions:
Use Devel::NYTProf to actually benchmark properly and really see where your time is going.
Use the 'next' key word to go to the next item iteration in the loop when you know the row cannot match anymore, you don't need those rX counters. Example:
if ($regex1) { next if (( $accpyn1) && ($line1 =~ m/$regex1/)); next if ((!$accypn1) && ($line1 !~ m/$regex1/)); }
In reply to Re: Efficient regex search on array table
by sectokia
in thread Efficient regex search on array table
by Polyglot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |