Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

petdance (2468)

AOL IM: petdance (Add Buddy, Send Message)
Yahoo! ID: petdance (Add User, Send Message)

I'm Andy Lester, and I like to test stuff. I also write for the Perl Journal, and do tech edits on books. Sometimes I write code, too.

Journal of petdance (2468)

Friday October 17, 2003
03:54 PM

Today's handy script

[ #15261 ]
My ~bin/cpandl

#!/usr/bin/perl -w

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";

and then run as

andy@mook[~]$ cpandl GAAS libwww-perl-5.72

Of course, if you're not pulling down latest-greatest tarballs 'cause you're a cpantester, you'll want to use a mirror...

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.