in reply to Parse a huge file and match the lines against a hash entry
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";
|
|---|