1Devel::Loaded(3)      User Contributed Perl Documentation     Devel::Loaded(3)
2
3
4

NAME

6       Devel::Loaded - Post-execution dump of loaded modules
7

SYNOPSIS

9           perl -MDevel::Loaded programname 2>/dev/null
10

DESCRIPTION

12       The Devel::Loaded module installs an at-exit handler to generate a dump
13       of all the module files used by a Perl program.  If used in conjunction
14       with a perl -c, you find those files loaded in at compile time with
15       "use".  If you are willing to wait until after the program runs, you
16       can get them all.
17

EXAMPLES

19       This is compile-time only:
20
21           $ perl -MDevel::Loaded perldoc 2>/dev/null
22           /usr/local/devperl/lib/5.00554/Exporter.pm
23           /usr/local/devperl/lib/5.00554/strict.pm
24           /usr/local/devperl/lib/5.00554/vars.pm
25           /usr/local/devperl/lib/5.00554/i686-linux/Config.pm
26           /usr/local/devperl/lib/5.00554/Getopt/Std.pm
27
28       This will also catch run-time loads:
29
30           #!/usr/bin/perl
31           use Devel::Loaded;
32           ...
33

SEE ALSO

35       The plxload and the pmload programs, which use this technique.
36
37       Neil Bowers has written a review
38       <http://neilb.org/reviews/dependencies.html> of Perl modules for
39       getting dependency information (26 of them at the time of writing).
40

AUTHORS and COPYRIGHTS

42       Copyright (C) 1999 Tom Christiansen.
43
44       Copyright (C) 2006-2014, 2018 Mark Leighton Fisher.
45

LICENSE

47       This is free software; you can redistribute it and/or modify it under
48       the terms of either: (a) the GNU General Public License as published by
49       the Free Software Foundation; either version 1, or (at your option) any
50       later version, or (b) the Perl "Artistic License".  (This is the Perl 5
51       licensing scheme.)
52
53       Please note this is a change from the original pmtools-1.00 (still
54       available on CPAN), as pmtools-1.00 were licensed only under the Perl
55       "Artistic License".
56
57
58
59perl v5.28.0                      2018-07-15                  Devel::Loaded(3)
Impressum