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


In reply to Net::FTP.pm Blues by knovicki

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.