v_1matst has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to make my own version of autobundle. Instead of making an alphabetical list of installed modules, I want it to list the modules based on dependencies so that you don't have to install autobundle a bunch of times. Is there anything like this out there already, and if not then can someone point me to an example of how to use CPAN::Distribution::prereq_pm properly? right now I am trying to get the hash by doing the following:
$distfile = CPAN::Shell->expand("Module","$check")->cpan_file; @result = CPAN::Shell->expand("Distribution", "$distfile")->prereq_pm;
all it returns is an empty hash for anything I pass to it. Thanks in advance for your help.

Replies are listed 'Best First'.
Re: CPAN::Distribution::prereq_pm
by chromatic (Archbishop) on Sep 27, 2001 at 21:51 UTC
    Looking at the docs for the CPAN module, it says 'make' has to run before it'll return anything. (That presumes you have a PREREQ_PL in your Makefile.PL.)

    ©