Devel::Loaded.3pm

Langue: en

Autres versions - même langue

Version: 1999-02-15 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Loaded - Post-execution dump of loaded modules

SYNOPSIS

     perl -MDevel::Loaded -Sc 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 -S -c 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. Copyright (c) 1999 Tom Christiansen

This is free software. You may modify it and distribute it under the Perl's Artistic Licence. Modified versions must be clearly indicated.