http://qs1969.pair.com?node_id=2225

vroom has asked for the wisdom of the Perl Monks concerning the following question: (http and ftp clients)

How do I FTP a file from my program?

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: How do I FTP a file from my program?
by vroom (His Eminence) on Jan 20, 2000 at 23:26 UTC
    You need to get Net::FTP from CPAN.
    use NET::FTP; my $hostname='superwarez.com'; my $user='warez'; my $password='warez'; my $ftp=Net::FTP -> new($hostname) or die ("Connect failed"); $ftp->login($username,$password); $ftp->binary; $ftp->cwd("/pub/uploads"); $ftp->put("mystuff.txt"); $ftp->get("warezlist.txt"); $ftp->quit
Re: How do I FTP a file from my program?
by Anonymous Monk on Apr 20, 2002 at 04:48 UTC
    $ftp->get("warezlist.txt");
    Hmmm.... LoL Sounds like a useful function if I ever heard one!

    Originally posted as a Categorized Answer.