in reply to Bad File descriptor Error
$ftp->get("$_") or die "Cannot get $_: $! $^E\n";
But $! and $^E aren't set by Net::FTP. The module's synopsis has a clear example of how to get the error message:
$ftp->get("that.file") or die "get failed ", $ftp->message;
Note that this'll expose that 550 error that the debug output shows, which means "file unavailable" according to a FTP RFC:
550 Requested action not taken. File unavailable (e.g., file not found, no access).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bad File descriptor Error
by amvarma (Initiate) on Jan 04, 2011 at 07:48 UTC | |
by Anonymous Monk on Jan 04, 2011 at 07:59 UTC | |
by ikegami (Patriarch) on Jan 04, 2011 at 16:43 UTC |