What, if any, effect would the use of:
use POSIX 'sleep';
have on the function of sleep?
Bye the way, in case you can't tell, I am not a Perl heavyweight by any stretch of the imagination.
Thanks for the response. I don't understand how you say that. The last two forms effectively pass the command to the OS. How can that use more resources than allowing the Perl interpreter to control the function as the first two would?
Thanks for the responses. The resource I am most concerned about is cpu time. This is based on monitoring a perl script and a similarly constructed Korn shell script. The impact of the KSH script on total cpu usage is much less than the impact of the Perl script.
sleep($time);
sleep $time...
When I use something like:
$sleeptime = 60;
sleep $sleeptime;
the script still consumes a small amount of system resources while it is supposed to be sleeping. I have tried every variation of the sleep function that I can think of. I have also tried compiling the script, but, it does not...
We are currently contemplating moving from AIX 5.2 to 5.3. The following example perl script works fine in 5.2, both has a script and compiled. In AIX 5.3 it works as a script, but gives "Can't use an undefined value as filehandle reference" when it is compiled. If I comment out the getopts...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.