in reply to Net:FTP timeout handaling
Try something like this (n.b. untested code):
Update: The timeout messages are emitted using carp which is equivalent to warn, and that is why you are seeing them but cannot catch them by using an eval block. Just search for 'Timeout' in Net/Cmd.pm.my $list = $ftp->dir(); unless ($list) { ...dir timed out or other error... } for (@$list) { # process each directory entry }
|
|---|