ryanc has asked for the wisdom of the Perl Monks concerning the following question:
if (($ftp->login($data->{'login'}, $data->{'pw'}) or $log->logwarn("upload_file: xqe $data->{'id'}, ", $ftp->message)) && ($ftp->binary or $log->logwarn("upload_file: xqe $data->{'id'}, ", $ftp->message)) && ($ftp->cwd($data->{'remote_dir'}) or $log->logwarn("upload_file: xqe $data->{'id'}, ", $ftp->message)) && ($ftp->put($to_upload) or $log->logwarn("upload_file: xqe $data->{'id'}, ", $ftp->message)) && ($ftp->quit)) { return 1; } else { $log->error("upload_file: xqe $data->{'id'}, " . "upload failed for $to_upload"); return undef; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP not catching errors, my fault?
by tphyahoo (Vicar) on Jun 06, 2005 at 14:54 UTC | |
by ryanc (Monk) on Jun 06, 2005 at 15:10 UTC | |
by polettix (Vicar) on Jun 06, 2005 at 15:55 UTC | |
by derby (Abbot) on Jun 06, 2005 at 15:39 UTC | |
by reasonablekeith (Deacon) on Jun 06, 2005 at 16:08 UTC | |
by ryanc (Monk) on Jun 06, 2005 at 16:44 UTC | |
|
Re: Net::FTP not catching errors, my fault?
by cool_jr256 (Acolyte) on Jun 06, 2005 at 15:48 UTC | |
by ryanc (Monk) on Jun 06, 2005 at 16:10 UTC |