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 ...
#!/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";
}
... so if I do ...
$ ./myscript.pl LWP
... I get ...
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.836.tar
+.gz
... but I would like to also get a list of dependencies also.