![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: robustly list any Perl code's module dependenciesby simonflk (Pilgrim) |
on Oct 06, 2002 at 14:00 UTC ( #203163=note: print w/replies, xml ) | Need Help?? |
This is a nice trick, but it won't work if the script or or any modules that are loaded do a use lib or unshift @INC Something like this should work, as long as require is not overriden elsewhere:
There is also a module (Module::Dependency) on the CPAN that builds a list of dependencies. update: added use strict-- simonflk
In Section
Code Catacombs
|
|