You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/perl
|
|
use warnings;
|
|
use strict;
|
|
use Net::FTP;
|
|
|
|
my $ftp = Net::FTP->new("ftp.cpan.org")
|
|
or die "Couldn't connect: $@\n";
|
|
$ftp->login("anonymous");
|
|
$ftp->cwd("/pub/CPAN");
|
|
$ftp->get("README.html");
|
|
$ftp->close; |