And this:#!/usr/local/bin/perl use strict; use warnings; use CPAN::FindDependencies; use ExtUtils::MakeMaker qw(prompt); my $mod = prompt("Enter module name: "); my @dependencies = CPAN::FindDependencies::finddeps($mod); foreach my $dep (@dependencies) { print ' ' x $dep->depth(); print $dep->name().' ('.$dep->distribution().")\n"; }
And this:#!/usr/local/bin/perl use strict; use warnings; use B::PerlReq; use ExtUtils::MakeMaker qw(prompt); my $mod = prompt("Enter path to .pm: "); my $prereq = system("perl -MO=PerlReq -d $mod"); print "$prereq\n";
#!/usr/local/bin/perl use strict; use warnings; use ExtUtils::MakeMaker qw(prompt); my $mod = prompt("Enter module name: "); my $info = system("module_info -a $mod"); print "$info\n";
In reply to Re: How to find the perl module's dependency modules ?
by Khen1950fx
in thread How to find the perl module's dependency modules ?
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |