fjaenale has asked for the wisdom of the Perl Monks concerning the following question:
$self->{ftp}->put($origin, $target) or $msg = $self->{ftp}->message(), $cod = $self->{ftp}->code(), print "$cod: $msg\n", return 1;
Looks is ok and works pretty well until the put failed for the first time. Here is the curious behavior, if you debug this piece of code and just before calling the put function you delete the $origin file and calls the put function then it will return an error and execute the "or" part. However the code and message returned in $msg and $cod is: "250: CWD command successful".
So I would like to know if there is any kind of bug reported and fix it or is this as expected. Have anyone had the same problem?
Thank you very much,
Francisco Jaen
20040927 Edit by Corion: Added code tags, formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FTP wierd return.
by NetWallah (Canon) on Sep 27, 2004 at 13:15 UTC | |
|
Re: FTP wierd return.
by shenme (Priest) on Sep 27, 2004 at 22:13 UTC |