my $re = qr/(.*$pat.*)/; while ($mmap =~ m/$re/g) { print $1,"\n"; } [download]
In reply to Re: Surprisingly poor regex performance by tall_man in thread Surprisingly poor regex performance by sgifford