We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi,
I've never used the alarm function as mentioned here:
http://perldoc.perl.org/functions/alarm.html 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. Jack In reply to Perl Alarm Not Working by aceofspace
|
|