I inherited an FTP program which uses the Net::FTP package.
I was running the program on perl version 5.003 with no
problems. When my company upgraded to perl v5.6.1, the program fails on login to the host machine.
$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");
}
}
}
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