Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: net::ftp please

by AgentM (Curate)
on Apr 18, 2001 at 03:47 UTC ( #73393=note: print w/ replies, xml ) Need Help??


in reply to net::ftp please

You've been asking lots of questions but haven't been doing lots of listening. It has been already explained to you that ftp.pm is in the Net directory, which makes it Net::FTP. Could the capitalized (hence non-existent) module be the problem?

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.


Comment on Re: net::ftp please
Net:ftp directory
by Anonymous Monk on Apr 18, 2001 at 05:13 UTC
    <http> <body> Let's say instead of Net::ftp, i use ftp.pm since that's
    all verio seems to have.. here's the module link:
    http://home.verio.com/support/hosting/perl_modules.cfm
    So how would the first line of the script look? Should i
    still use the double colons.. :: ..?

    Lisa.

    use NET::FTP;
    my $hostname='Lisa.com';
    my $user='Lisa';
    my $password='Lisa';
    my $ftp=Net::FTP -> new($hostname) or die ("Connect failed");
    $ftp->login($username,$password);
    $ftp->binary;
    $ftp->cwd("/pub/uploads");
    $ftp->put("mystuff.txt");
    $ftp->get("warezlist.txt");
    $ftp->quit
      The "Net" before the colons indicates that the module is in the Net directory. If the module you want, say "Bubba.pm" is in the "Slurpy" directory, then you allow yourself to use it with
      use Slurpy::Bubba;
      If Bubba is in a Perl "main" directory, then it finds it when you write "use Bubba". If you insist that there is no "Net::FTP" module that you can use, I would 1) throw my hand in the air and "use FTP;" and 2) consider switching servers to someplace that knows something more about Perl dependencies.
      AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

      As many people seem to have pointed out to you, it should be:

      use Net:FTP;

      Not, NET::FTP, or Net::ftp or any of the other variations that you've tried. Perl is case sensitive, so nothing else will work.

      --
      <http://www.dave.org.uk>

      "Perl makes the fun jobs fun
      and the boring jobs bearable" - me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://73393]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (20)
As of 2014-07-28 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (206 votes), past polls