in reply to Perl code timing

In addition to all the other good advice, you might want to take a peek at Benchmark::Timer. It's a constituant part of the Benchmark module.

It has the nice ability to allow you to start and stop as many timers as you want in whatever order, and more than once. It accumlates the times for each named timer and provides a nicely formatted 'potted' report on demand.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!
Wanted!