See this recent thread: Self terminating a script after a specified time for a problem similar to yours. Especially this reply containing useful notes about alarm.
Also, as in the thread above, I would suggest you to look at Time::Limit.
- Luke
In reply to Re: How to use timeout in perl
by blindluke
in thread How to use timeout in perl
by vasuperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |