http://qs321.pair.com?node_id=394561

knovicki has asked for the wisdom of the Perl Monks concerning the following question:

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:

#!/usr/bin/perl -w # test.pl use warnings; use Net::FTP; $ftp = Net::FTP->new("svr123", Debug => 1); print STDOUT ( defined $ftp ? "yep" : '$ftp' ), "\n"; $ftp->login("oracle",'xxx'); $ftp->cwd("/u01"); $ftp->put("test.dat"); $ftp->quit;
Can't call method "login" on an undefined value

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.
Ken

20040928 Janitored by Corion: Put code in code tags