I went back and used chomp on all of the scalar variables, but I still 
recieved the same error message which is listed below. The <STDIN> referred 
to in line 5 is 'chomp($url = <STDIN> ) ;'

Can't call method "login" on an undefined value at D:\sparkle\perl6.pl line 
50, <STDIN> line 5.


>From: "Daniel Mester" <[EMAIL PROTECTED]>
>To: "'Sparkle Williams'" <[EMAIL PROTECTED]>
>Subject: RE: Login error w/FTP
>Date: Thu, 26 Jul 2001 17:29:19 +0200
>
>Hi,
>i guess that problem is that you don't use 'chomp'. Am i right?
>Try to use 'chomp($string = <STDIN>)' for getting each of parameters.
>Correct me if i am wrong.
>Daniel.
>
>-----Original Message-----
>From: Sparkle Williams [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 26, 2001 4:13 PM
>To: [EMAIL PROTECTED]
>Subject: Login error w/FTP
>
>
>Well, I have this script that I'm trying to write using the FTP module,
>however it keeps responding with an error message concerning the login line
>of the script whenever I try to run it. I have run out of ideas and have
>absolutely no clue as to what the problem is. It is driving me crazy. Below
>is an excerpt of the script. Help!
>use Net::FTP;
>
>         print "Username?";
>
>         $username = <STDIN>;
>
>         print "Password?";
>
>         $password = <STDIN> ;
>
>         print "ftp_home?";
>
>         $ftp_home = <STDIN>;
>
>         print "The filename you are searching for is...";
>
>         $filename = <STDIN>;
>
>         $ftp = Net::FTP->new($url, Debug=>0);
>
>         $ftp->login( $username , $password );
>
>         print $ftp->cwd($ftp_home), "\n";
>
>         $ftp->get($filename);
>
>         $ftp->quit;
>
>
>_________________________________________________________________
>Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to