Control a perl script's CPU utilization?
cpu-usage, perl
Solution
you could lower the process (Perl's) priority, as assigned by the OS: windows or linux
example for lowest priority:
windows
start /LOW perl <myscript>
linux
nice +19 perl <myscript>
Problem
I am doing a lot of file searching based on a criteria in multiple iterations from my Perl script and it seems to take up 100% of the CPU time. Is there a way to control my script CPU utilization? I read somewhere about putting empty sleep cycles in my script. But I am not sure how to do this.