Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Answer: How do I FTP a file from my program?

by vroom (Pope)
on Jan 20, 2000 at 23:26 UTC ( #2229=categorized answer: print w/replies, xml ) Need Help??

Q&A > HTTP and FTP clients > How do I FTP a file from my program? - Answer contributed by vroom

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

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-07-07 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?