Here's an example script from the Net::FTP docs
use Net::FTP;
$ftp = Net::FTP->new("some.host.name");
$ftp->login("anonymous","[EMAIL PROTECTED]");
$ftp->cwd("/pub");
$ftp->get("that.file");
$ftp->quit;
HTH
John
-----Original Message-----
From: Sparkle Williams [mailto:[EMAIL PROTECTED]]
Sent: 03 August 2001 14:54
To: [EMAIL PROTECTED]
Subject: ftp login
I'm trying to get my program to retrieve a file through ftp. However I keep
getting the error "can't call method login" for the following line:
'$ftp->login( $username , $password )'
and doesn't retrieve the file.
I can't see where I made an error in this line. Any ideas?
Thanks
_________________________________________________________________
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------Confidentiality--------------------------.
This E-mail is confidential. It should not be read, copied, disclosed or
used by any person other than the intended recipient. Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful. If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]