Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Devel::Loaded (3)

Name

Devel::Loaded - execution dump of loaded modules

Synopsis

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

Description

User Contributed Perl Documentation                           Devel::Loaded(3)



NAME
       Devel::Loaded - Post-execution dump of loaded modules

SYNOPSIS
           perl -MDevel::Loaded programname 2>/dev/null

DESCRIPTION
       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/perl
           use Devel::Loaded;
           ...


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+----------------------------+
       |ATTRIBUTE TYPE |      ATTRIBUTE VALUE       |
       +---------------+----------------------------+
       |Availability   | library/perl-5/pmtools-532 |
       +---------------+----------------------------+
       |Stability      | Uncommitted                |
       +---------------+----------------------------+

SEE ALSO
       The plxload and the pmload programs, which use this technique.

       Neil Bowers has written a review
       <http://neilb.org/reviews/dependencies.html> of Perl modules for
       getting dependency information (26 of them at the time of writing).

AUTHORS and COPYRIGHTS
       Copyright (C) 1999 Tom Christiansen.

       Copyright (C) 2006-2014 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".



NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://search.cpan.org/CPAN/authors/id/M/ML/MLFISHER/pmtools-2.0.0.tar.gz.

       Further information about this software can be found on the open source
       community website at http://search.cpan.org/dist/pmtools/.



perl v5.32.0                      2014-02-04                  Devel::Loaded(3)