use Regex::PreSuf; my $bigregex = presuf( values %msgDefn ); my $start = time(); while( <FILEHANDLE> ){ print if /$bigregex/; } my $end = time(); print "Time taken was ", ($end - $start), " seconds";
In reply to Re: Parse a huge file and match the lines against a hash entry
by Anonymous Monk
in thread Parse a huge file and match the lines against a hash entry
by snra_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |