Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Re: Re: net::ftp please

by diskcrash (Hermit)
on Apr 18, 2001 at 04:58 UTC ( #73404=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: net::ftp please
in thread net::ftp please

What I meant was $user is not $username. If this is just a typo from the "template", fine. How about the real code, but with stubbed out user content?


Comment on Re: Re: Re: net::ftp please
Replies are listed 'Best First'.
Re: Re: Re: Re: net::ftp please
by Anonymous Monk on Apr 18, 2001 at 05:18 UTC
    <http> <body> Yea.. here's the real script i'm running.. with my name
    inserted instead.. also.. here's the module list from verio:
    Would the first line of the script still use double comma's?


    use Net::FTP;
    my $hostname='';
    my $user='Lisa';
    my $password='Lisa';
    my $ftp=Net::FTP -> new($hostname) or die ("Connect failed");

      In the call to $ftp->login you are using the variable $username, but you never set that variable to a value. You set the variable $user to a value, but you never use it anywhere.

      Using -w and use strict in your scripts would alert you to problems like this.


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2016-05-27 19:03 GMT
Find Nodes?
    Voting Booth?