Devel::Loaded(3)
π NAME π
Okay bestie, welcome to Devel::Loaded(3) β this page is from the User Contributed Perl Documentation, and the whole mood is: Post-execution dump of loaded modules. Slay.
πΈ SYNOPSIS πΈ
perl -MDevel::Loaded programname 2>/dev/null
β¨ DESCRIPTION β¨
Okay so Devel::Loaded installs an at-exit handler that generates a dump of all the module files used by a Perl program. It's literally giving main-character energy: βshow me everything you loadedβ π₯.
If you use it together with a perl -c, you find those files loaded in at compile time with use. Compile-time only, bestie. If you are willing to wait until after the program runs, you can get them all. No cap.
π¦ 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/perl
use Devel::Loaded;
...
π SEE ALSO π
The plxload and the pmload programs, which use this technique. π
Neil Bowers has written a review at http://neilb.org/reviews/dependencies.html of Perl modules for getting dependency information (26 of them at the time of writing). Iconic.
π«Ά AUTHORS and COPYRIGHTS π«Ά
- Copyright (C) 1999 Tom Christiansen.
- Copyright (C) 2006-2014, 2018 Mark Leighton Fisher.
π LICENSE π
This is free software; you can redistribute it and/or modify it under the terms of either: (a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or (b) the Perl "Artistic License". (This is the Perl 5 licensing scheme.) π
Please note this is a change from the original pmtools-1.00 (still available on CPAN), as pmtools-1.00 were licensed only under the Perl "Artistic License". Important caveat, bestie β don't skip it.
mwah π β signed off from perl v5.32.1, dated 2022-01-21. periodt.
π¦ where this page comes from
- epel 9: perl-pmtools 2.2.0-14.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms