in reply to Re: Getting the dependencies list of the module .
in thread Getting the dependencies list of the module .

Hi all, Can U give me an example program for Module::Depends module. I have tried like this,
use YAML; use Module::Depends; my $deps = Module::Depends->new->dist_dir( '.' )->find_modules; print "Our dependencies:\n", Dump $deps->requires;
But I didn't get any result. The dumper is empty. In this code , where I need to give my specified module name. Please help me...

Replies are listed 'Best First'.
Re^3: Getting the dependencies list of the module .
by Anonymous Monk on Mar 30, 2011 at 11:27 UTC
    You do not want Module::Depends, it relies on reading META.yml, or if you use Module::Depends::Intrusive , on running Build.PL/Makefile.PL

    You want to use scandeps or you want to use Devel::Modlist

    or you want to hack with grep

    or you want to hack with ack

    Or you want to push a coderef onto @INC Or PPI based Module::Used/modules-used
    $ modules-used Module-Depends-0.15\lib\Module\Depends.pm base Class::Accessor::Chained Cwd Parse::CPAN::Meta strict
    Yup, it seems you asked for modules-used
Re^3: Getting the dependencies list of the module .
by Anonymous Monk on Mar 30, 2011 at 10:26 UTC
    Is your current working directory (.) your unpacked distribution tree?