> 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?
Depends on how the files are encrypted. What I would suggest is writing
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