Plankton has asked for the wisdom of the Perl Monks concerning the following question:
Dear Wise Monks,
I am trying to write a script that will list the dependencies of a CPAN Perl module. I already have a script that will print out the tarball that contains the module ...
... so if I do ...#!/usr/bin/perl -w use strict; use Data::Dumper; use CPAN; use File::Basename; for my $mod (CPAN::Shell->expand("Module", shift )) { my $url = "http://search.cpan.org/CPAN/authors/id/" . $mod->{ +'RO'}{'CPAN_FILE'} . "\n"; print "$url"; }
... I get ...$ ./myscript.pl LWP
... but I would like to also get a list of dependencies also.http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.836.tar +.gz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Programatically getting list of dependecies of a CPAN module?
by Khen1950fx (Canon) on Jul 02, 2010 at 21:14 UTC |