Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found