in reply to Re^2: Perl Script Causing high CPU usage
in thread Perl Script Causing high CPU usage

Good luck in the hunt -- if the loop is using lots of CPU just to do print statements, then I don't know that there's much you can do to limit its CPU utilization. Sounds like the OS is giving your script everything it needs; are you sure it's a problem?

As a complete side note, I am deadly curious -- what is a lakh file? Is that some kind of special log format or something?

  • Comment on Re^3: Perl Script Causing high CPU usage

Replies are listed 'Best First'.
Re^4: Perl Script Causing high CPU usage
by swampyankee (Parson) on Oct 05, 2013 at 19:23 UTC

    I suspect that the poster is using the Indian term for 100,000


    Information about American English usage here and here. Floating point issues? Please read this before posting. — emc