Your die string will not be $timeoutstr so you need to use =~ on line 29.
Also:
You might want to take a look at Signal Handling and Canceling Operations.
I use signals with DBD::Oracle but I use Sys::SigAction.
An alternative (although I'm not sure it is available for DBD::Oracle) is asynchronous operations which some DBDs support.
In reply to Re: Can't time out a $sth-fetchrow()
by mje
in thread Can't time out a $sth-fetchrow()
by Skeeve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |