One way to achieve this would be as follows:
local $SIG{ALRM} = sub { die "Database error!\n"; }; alarm 60; # wait 60 seconds before interrupting # call to database
Hope that helps ..
--Foxcub
In reply to Re: calculate run time
by Tanalis
in thread calculate run time
by venki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |