http://www.perlmonks.org?node_id=923499


in reply to help speeding up my perl code

This looks like a job for a profiler!

Try Devel::NYTProf on for size...


What can be asserted without proof can be dismissed without proof. - Christopher Hitchens

Replies are listed 'Best First'.
Re^2: help speeding up my perl code
by a217 (Novice) on Aug 31, 2011 at 20:18 UTC

    That seems like an interesting package, but I already know that the slow part is the foreach loop within the while loop.

Re^2: help speeding up my perl code
by BrowserUk (Pope) on Aug 31, 2011 at 20:13 UTC

    You do not need an over-engineered profiler to see the obvious. Try using your eyes first!

      BrowserUK,

      What may be obvious to your well-experienced eyesight might not be within the realm of experience of a relatively new Perl programmer.

      It was with humble intentions that I offered a vehicle to broaden their Perl exposure...

      Fair enough?


      What can be asserted without proof can be dismissed without proof. - Christopher Hitchens