On Feb 7, 2008, at 10:40 PM, Jonathan Rockway wrote:

* On Thu, Feb 07 2008, Matisse Enzer wrote:
I want to utility program that I can point at a list of files and/r
directories and get back a list of all the unique modules/pragmas that
are imported via 'use'

Before i write my own, using PPI, does this exist already in the CPAN?

What's wrong with Module::ScanDeps? It has options for static scanning (regexing the code, basically) or running the code and inspecting % INC.

Also, it comes with scandeps.pl, so you don't need to write any code.

Regards,
Jonathan Rockway

I second this. Module::ScanDeps has LOTS of heuristics for unsual loads (think: Module::Pluggable). PAR::Packer uses it under the hood.

Chris

Reply via email to