I am developing some XML munging Perl right now that has required me to install CPAN module after CPAN module. I will find that I need to use a particular library and then when I go to install that lib, I will find that I first need to install some other libraries and so on and so on.

Now this doesn't bother me much, but the problem is that after I develop the code I have to hand it over to another group of people (who aren't terribly familiar with things Perlish) and let them install all the modules and my code on a different box. Now since I am a moron and I haven't been keeping a meticulous list of what was installed and in what order, this is going to be a problem.

And now we get to the question: Is there an automated means of determining which modules are dependant upon others? If so, is there a way of producing a list that shows a heirarchical order in which modules must be installed?

For example: I found out that I needed to use XML::LibXML. In order to install this, you must first go to xmlsoft.org and download and install libxml2. You must also install XML::SAX. But before you can install XML::SAX, you must first install File::Temp and XML::NamespaceSupport. After you do this, you can install XML::SAX. After all that, you can install XML::LibXML.

What I would like is an automated means of producing a list as follows:
XML::LibXML --libxml2 --XML::SAX ----File::Temp ----XML::NamespaceSupport
Forgive me if this is totally naive. I like chicken.

In reply to Module dependencies by Stegalex

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.