Feb 4, 2009, 5:00 AM
Post #2 of 3
perldoc -q timeout
Re: [rameshgsl] time out for a function
[In reply to]
Found in /usr/lib/perl5/5.10.0/pod/perlfaq8.pod
How do I timeout a slow event?
Use the alarm() function, probably in conjunction with a signal handler, as documented in "Signals" in perlipc and the section on "Signals" in the
Camel. You may instead use the more flexible Sys::AlarmCall module available from CPAN.
The alarm() function is not implemented on all versions of Windows. Check the documentation for your specific version of Perl.