On 8 Sep 2003 at 15:29, Elizabeth Mattijsen wrote: > At 14:13 +0100 9/8/03, Michael Stevens wrote: > >Probably you could get most of the data the experimental way - %INC will > >list things loaded with do, require, or use (see perlvar), so you could > >'use' each interesting module on its own and monitor which files get > >loaded, and generate a suitable graph. > > Except of course, a lot of modules load other modules depending on > parameters passed with -use- (aka the import routine). ;-(
Or even "require" things at runtime, possibly depending on which subroutine gets called. (For example, subroutine do_foo() might need Acme::Foo but all the others don't, so do_foo() might require() Acme::Foo so that Acme::Foo is a prerequisite only if you actually call do_foo(), but not if you only use the other 42 subroutines.) Cheers, Philip -- Philip Newton <[EMAIL PROTECTED]>