Welcome to the Monastery | |
PerlMonks |
Re: Can't time out a $sth-fetchrow()by mje (Curate) |
on May 27, 2011 at 07:54 UTC ( [id://906947]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|