Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

How do I FTP a file from my program?

by vroom (His Eminence)
on Jan 20, 2000 at 23:15 UTC ( #2225=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://2225]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2022-09-30 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?