short answer -- look at use Data::Dumper; print Dumper \%INC; or Module::Depends or
Module::ScanDeps (which is what PAR uses--can always just use pp and see what it bundles up).
long answer -- browse these nodes:
And on a related topic:
| [reply] [d/l] |
Module::Info explicitly says you can hand it a script, not just a ".pm" file. Various other options: Module::ExtractUse, Module::ScanDeps, and Module::PrintUsed. Since it's your own, trusted code, you might like to try the last one.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
| [reply] |