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

I'm working on migrating a community from an old, crufty installation onto a shiny new system.

I'd like to generate a list of files found in directories on @INC and try to generate a list of CPAN modules that accounts for as many of them as possible.

Before I reinvent any unnecessary wheels I thought I should ask for pointers to any existing tools and/or data sets (e.g. list of files contained in various CPAN modules, etc...) that might let me be Lazier.

Thanks for any suggestions.

g.

  • Comment on Reverse engineer a list of CPAN modules from stuff in @INC

Replies are listed 'Best First'.
Re: Reverse engineer a list of CPAN modules from stuff in @INC
by jasonk (Parson) on Mar 05, 2009 at 02:18 UTC
    perl -MCPAN -e autobundle

    Will create a file in ~/.cpan/Bundle directory containing a list of all the installed modules. For bonus points you can even copy that file to another machine, and use CPAN again to install that bundle, automatically installing everything that was installed on the original host.


    www.jasonkohles.com
    We're not surrounded, we're in a target-rich environment!
Re: Reverse engineer a list of CPAN modules from stuff in @INC
by perrin (Chancellor) on Mar 05, 2009 at 03:37 UTC
    A quick Google for "find installed perl modules" will give you many options.