This is the Egg Shen release [1] of Module::Info. http://www.pobox.com/~schwern/src/Module-Info-0.08.tar.gz
This release adds modules_used(). Tells you all the modules and files required or used by the module in question using the backend compiler. As such its more reliable than a regex-based one. modules_used my @used = $module->modules_used; Returns a list of all modules and files which may be "use"'d or "require"'d by this module. NOTE These modules may be conditionally loaded, can't tell. Also can't find modules which might be used inside an "eval". I had to do some severe cargo-cultery from B::Deparse to make this work. If anyone's curious they can look at B::Module::Info, but I'd recommend against it. This method simply returns a list of all the modules used. I plan on providing another method which provides additional info such as where each is used, how many times and if it was required as a bareword or not (ie. "require Foo" vs "require 'Foo.pm'"). I've got all that information internally, just need to put an interface on it. That should make the refactoring folks happy. 0.08 Mon Dec 10 14:24:56 EST 2001 * Implemented modules_used() - Fixed a little bug in walkoptree_filtered() and $B::Utils::file/line 0.07 Mon Dec 10 11:09:40 EST 2001 * Implemented subroutines(). Need help getting modules_used() done. - Fixed up $B::Utils::file/line handling in B::Utils. - Fixed a little bug in is_core involving cannonical paths. I forget who gave me the patch! [1] Scene from "Big Trouble In Little China" Jack Burton "How'd you get up there?!" Egg Shen "Wasn't easy!" -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Well, my work here is done. If you need me again, just admit that you're screwed and die.