Devel::Loaded3pm
Post-execution dump of loaded modules
Usage
perl -MDevel::Loaded programname 2>/dev/null
Overview
The Devel::Loaded module installs an at-exit handler to generate a dump of all the module files used by a Perl program. If used in conjunction with a perl -c, you find those files loaded in at compile time with "use". If you are willing to wait until after the program runs, you can get them all.
Examples
This is compile-time only:
$ perl -MDevel::Loaded perldoc 2>/dev/null/usr/local/devperl/lib/5.00554/Exporter.pm/usr/local/devperl/lib/5.00554/strict.pm/usr/local/devperl/lib/5.00554/vars.pm/usr/local/devperl/lib/5.00554/i686-linux/Config.pm/usr/local/devperl/lib/5.00554/Getopt/Std.pm
This will also catch run-time loads:
#!/usr/bin/perluse Devel::Loaded;...
AUTHORS and COPYRIGHTS
Copyright (C) 1999 Tom Christiansen.
Copyright (C) 2006-2014, 2018 Mark Leighton Fisher.
Releases
13 releases since Debian 2.2 (Potato); the text changed 7 times.