http://www.perlmonks.org?node_id=698698

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

Is there a "good" way to find out what modules another module depends upon?

I want to build a machine with most of the perl libraries as another machine. I don't want to just use autobundle, because I don't want to install everything. I figure the best way to do this is to find all the modules aren't depended upon, IE the root of the dependency tree. In order to do that, I figure I'll have to go through all my installed modules and find out what they use/require and then take the results and turn them upside down. Once I have this list, it will be pretty easy to see what's junk and what's important.

I'd rather not parse the text of all the modules on my computer, so that's what I mean by "good", but if that's what I have to do, then so be it.

Thanks!
--Pileofrogs