Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Programmatic way to get CPAN Module tarballs?

by ctilmes (Priest)
on Jan 13, 2010 at 17:43 UTC ( #817237=note: print w/ replies, xml ) Need Help??


in reply to Programmatic way to get CPAN Module tarballs?

Try the CPAN module itself.

CPAN::Distribution::get might do the trick.


Comment on Re: Programmatic way to get CPAN Module tarballs?
Replies are listed 'Best First'.
Re^2: Programmatic way to get CPAN Module tarballs?
by Plankton (Priest) on Jan 13, 2010 at 17:58 UTC
    thanks! exactly what I needed!
      #!/usr/bin/perl -w use strict; use CPAN; my @cpanmods = qw / Algorithm::Interval2Prefix \ Apache::Session::File \ ... other modules go here XML::Generator /; for my $cpanmod ( @cpanmods ) { for my $mod (CPAN::Shell->expand("Module", $cpanmod )) { print "http://search.cpan.org/CPAN/authors/id/" . $mod +->{'RO'}{'CPAN_FILE'} . "\n"; } }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-07-29 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls