You can catch anything using eval blocks:
Net::FTP also lets you set the timeout value, so you could try increasing it if that's the problem.eval {$ftp->get("that.file")}; if ($@ =~ /Timeout/) { # catching code goes here }
In reply to Re: How to catch Net::FTP timeouts ?
by steves
in thread How to catch Net::FTP timeouts ?
by Brutha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |