Module::Use
use Module::Use (Counting, Logger => "Debug");
<Perl> use Module::Use (Counting, Logger => "Debug"); </Perl> PerlChildExitHandler Module::Use PerlCleanupHandler Module::Use PerlLogHandler Module::Use
Module::Use will record the modules used over the course of the Perl interpreter's lifetime. If the logging module is able, the old logs are read and frequently used modules are automatically loaded. Note that no symbols are imported into packages.
Under mod_perl, only one Perl*Handler should be selected, depending on when and how often logging should take place.
The following options are available when useing this module.
use
This is the number of times a module has been used for it to be automatically loaded.
This indicates that the number of times a module is required should be tracked. This option takes no arguments.
require
This number is subtracted from the count of all modules that are in the data store but were not loaded.
This number is added to the count of all modules that were loaded.
Do not automatically load more than this many modules.
This is the logging module to use. Configuration is specific to the module chosen. Please see the documentation for the module.
The module name is Module::Use::Logger with Logger replaced with the value of this option.
Module::Use::Logger
Logger
The percentage of total module loads is used in the same manner as the Count. If both Percentage and Count are given, the one with the greater counts is used.
Count
Percentage
Module::Use::Debug, Module::Use::DB_FileLock.
James G. Smith <jgsmith@jamesmith.com>
Copyright (C) 2001 James G. Smith
Released under the same license as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Can't have a 0 in =over 0
To install Module::Use, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Use
CPAN shell
perl -MCPAN -e shell install Module::Use
For more information on module installation, please visit the detailed CPAN module installation guide.