DDJ: Tracking Perl Module Use
Keeping track of all the modules used in your software can be difficult. Luckily there's module to do this for you:
Just as with other Perl debuggers, you activate the Devel::Modlist debugger with the -d switch to perl.
You get the same module list as before, but your script does not execute, so you do not have to worrying about separating the output from Devel::Modlist from the output of your script.
Devel::Modlist. This handy debugger module can analyze your installed modules and give you various lists of them depending on what you want to see.
Just as with other Perl debuggers, you activate the Devel::Modlist debugger with the -d switch to perl.
perl -d:Modlist script.pl
perl -d -MDevel::Modlist=stop script.pl
You get the same module list as before, but your script does not execute, so you do not have to worrying about separating the output from Devel::Modlist from the output of your script.