in reply to Re: CPAN and module dependancies
in thread CPAN and module dependancies

no no no... The other way..

When an author uploads a module, they can add something to the effect of

Module Dependancies:
Net::FTP
MIME::Base64
Digest::MD5

That way when you go to grab module A, you can check for modules b,c,d in your installation, and grab those as well if needed.

Update: Ahh.. I see what you are saying, but wouldn't it make sense? I mean there have been times (notably Net::SSH::Perl), where I would have loved to know that I needed over a dozen other modules, prior to trying to get it working on a host.

I hear what you are saying about possibly pushing authors away, but do you honestly think that will happen? I don't know what kind of reqs there are for getting your module on CPAN, but I can assume a simple find . -name "*.plm" -print | xargs grep "^use" wouldn't be that much more work..

/* And the Creator, against his better judgement, wrote man.c */

Replies are listed 'Best First'.
Re: CPAN and module dependancies
by Abigail-II (Bishop) on Nov 05, 2002 at 20:06 UTC
    No, it doesn't make sense. The information is already provided, it's in Makefile.PL (assuming a proper Makefile.PL). And if you go to search.cpan.org, search for a module, and then browse it, you can see the content of Makefile.PL.

    If you still find this too much of a hassle, I suggest volunteering to write a patch for PAUSE that extracts the information from Makefile.PL and puts the information somewhere to your liking. No need to require authors to do redundant things.

    Abigail