|more useful options|
Perl Alarm Not Workingby aceofspace (Acolyte)
|on Dec 19, 2010 at 04:59 UTC||Need Help??|
aceofspace has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, I've never used the alarm function as mentioned here:
So I made a test script to see how it works.
But I couldn't get it working. Could you kindly help?
Here's the test script I wrote:
&do_program(1, 100) will take about 2 minutes to run from start to finish.
Above script does not work because &do_program(1, 100) will continue to run from start to finish in 2 minutes regardless what I set the $timeout variable at different numbers less than 120(2 minutes).
Awaiting your wisdom to solve this problem. Thanks.