I want to connect to an FTP server and get some files.
I found the "Being an FTP Client" document in the Perl
Cookbook which has the following lines:
$ftp = Net::FTP->new("ftp.host.com") or die "Can't
connect: $@\n";
$ftp->login($username, $passwd) or die "Couldn't
login\n";
My question is:
Do the username and passwd have to be hardcoded in the
script or can I pass these values from a file? Does
ftp have any way of getting credentials (at least for
the password) from an encrypted file?
Thanks in advance for any advice in this.
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]