On Feb 7, 2008, at 9:18 PM, Andy Armstrong wrote:

On 8 Feb 2008, at 02:14, 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?


In general it can't be done without running the code - because modules could be loaded dynamically.

If you can run the code then Devel::TraceLoad[1] might help you.

[1] http://search.cpan.org/dist/Devel-TraceLoad/


I only care about modules loaded via 'use' for now - that's Good Enough (tm) for our purposes.



-------------------------------------------------------
Matisse Enzer <[EMAIL PROTECTED]>
http://www.matisse.net/  - http://www.eigenstate.net/



Reply via email to