in reply to Re: Source-Code Analysis?
in thread Source-Code Analysis?

Not to toot my own horn too much, but I have a module on CPAN that does this: Devel::Modlist.

It can also reduce the number of listings down, using the CPAN info, to only reference one module per distribution (much like the "r" command in the CPAN shell).

--rjray

Replies are listed 'Best First'.
Re: Re: Re: Source-Code Analysis?
by drewbie (Chaplain) on May 18, 2004 at 00:24 UTC
    Funny you should post this - I just used your module a couple days ago to find module dependencies so I can install a webapp in a standalone situation. And it did a great job in a very quick & easy way. :-)

    The downside: it missed one module. I'm using Class::DBI, and it missed the DBIx::ContextualFetch module used by Ima::DBI. But that seems forgivable since the only mention of DBIx::CF in Ima::DBI is in the RootClass attribute passed to DBI->connect. No use statement at all. Hmm, maybe I should submit a patch...

      That's odd. Were you, by chance, using the "stop" option to get a reading without actually running the application? Because one limitation it does have is that modules loaded dynamically at run-time don't show up during the initial compile phase. If you ran the application from start to end, I would think it would catch these extras.

      (The same thing would happen with plain-old DBI and any associated drivers.)

      --rjray

        Nope - I got the output of the script, followed by the module use information. I used the first example in the Synopsis section. It was just the one-liner. I'd cut-n-paste the results but I don't have access to the server I was using it on right now.