in reply to Performance issue

It might help to post your timing results along with the code. Systems differ and it is possible that the timing results you see are specific to your system rather than something internal to the Perl interpreter.

On my system, the time it takes to parse each line is essentially 0 - so I'm not sure what you are concerned about.

1234974983.91134 1234974983.91134 1234974983.91134 1234974983.92134

If you aren't getting the same results, I suspect the problem is your print lines. They take a *huge* amount of time relative to the regex parser. If I run Extract 1000 times and compare the time before the first run and after the 1000th run, I get 0.22 seconds with only the line: "Extract begins with..." printing out and 0.03 seconds if I remove all prints from within the loop

The bottom line: don't use print statements to profile code - you'll be measuring the print statements, not the code performance. A better option is to use the -d:DProf option, e.g. perl -d:DProf myscript.pl - see Profiling Perl and module documentation Devel::DProf.

Best, beth