Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i tried to windiff the versions of the Net::FTP between 5.003 and 5.6.1, but the differences are too many. I also tried to search for 'net_cmd_code' in both versions of FTP.pm except this did not help at all. Does someone know the difference between the versions that would cause this problem. btw, i'm running this code on winNT4 SP6. thanks, michael$ftp = new Net::FTP($host, Debug => $debug, Timeout => $timeout, Firew +all => $firewall); unless ($ftp) { #not important } else { print("Connected to $host...\n"); if ( $ftp->login( $acct, $pwd ) { print("Logged in...\n"); } else { if ( ${*$ftp}{'net_cmd_code'} >= 300 ) { die("Bad account and/or password.\n"); } } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::FTP problem
by c-era (Curate) on Jun 05, 2002 at 17:54 UTC | |
by Anonymous Monk on Jun 05, 2002 at 18:04 UTC | |
by c-era (Curate) on Jun 05, 2002 at 18:32 UTC | |
by Marza (Vicar) on Jun 05, 2002 at 18:43 UTC | |
Re: Net::FTP problem
by joealba (Hermit) on Jun 05, 2002 at 18:29 UTC | |
by Anonymous Monk on Jun 05, 2002 at 19:27 UTC |