in reply to Re: Python regex faster than Perl?in thread Python regex faster than Perl?
my $count = 0; $count += () = /mul\(\d{1,3},\d{1,3}\)/g while <$fh>; [download]
Slurping took 0.582s, line-by-line processing takes 0.680s.