in reply to How to use timeout in perl

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

Replies are listed 'Best First'.
Re^2: How to use timeout in perl
by vasuperl (Acolyte) on Jan 09, 2015 at 05:05 UTC

    I already tried that one. But Time::Limit (limit.pm) module is not present in our perl version. We should not use external modules. Is there any other way to use timeout or alarm to exit from the script. Any help can be appreciated.