My ~bin/cpandl
use strict;
use LWP::Simple;
my $author = shift or die "Must specify an author\n";
my $distro = shift or die "Must specify a distro\n";
$distro .= ".tar.gz" unless $distro =~ /\.tar\.gz$/;
my $path = sprintf( "%sauthors/id/%1.1s/%2.2s/%s/%s", $ENV{CPAN}, $author, $author, $author, $distro );
warn "Getting $path\n";
my $resp = getstore( $path, $distro );
print $resp, "\n";
andy@mook[~]$ cpandl GAAS libwww-perl-5.72
Getting ftp://pause.cpan.org/pub/PAUSE/authors/id/G/GA/GAAS/libwww-perl-5.72.tar.gz
200
cpanp -d 'Acme::Test'
Re:cpanp
petdance on 2003-10-18T01:07:20
yes, but that relies on having the module list updated. In my case, I need to pull something down that just got uploaded.