I知 an Oracle DBA and rather new to Perl. I知 trying to get a custom ETL process running on a new Solaris machine, running Solaris 9, and I知 having great difficulty getting the Net::FTP process to work. The ETL process is already running on other AIX, Solaris and Windows machines, but not on this one. I have read many articles on the Internet, but I still can not resolve the problem. Below is an example of the code that I知 trying to run as well as the error:
Can't call method "login" on an undefined value
$ftp = Net::FTP->new("svr123", Debug => 1);
print STDOUT ( defined $ftp ? "yep" : '$ftp' ), "\n";
The Sys Admin installed Perl as well as FTP.pm. For some reason, connection is just not being made to svr123. Using the same login information, I can use FTP interactively and it works. I知 sure it has to do with some type of installation or configuration problem, but I知 not sure what else to check. Any help would be appreciated. Thanks in advance.
20040928 Janitored by Corion: Put code in code tags