$SIG {ALRM} = sub {exit}; alarm (30);
There's however one caveat: if you use Perl 5.8.0, and your script is "hanging" during a Perl operation, the signal will be queued until that Perl operation is finished.
Abigail
In reply to Re: script suicide?
by Abigail-II
in thread script suicide?
by AssFace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |