Jump to letter: [
3ABCDEFGHIJKLMNOPQRSTUVWXYZ
]
perl-autouse - postpone load of modules until a function is used
- Description:
If the module Module is already loaded, then the declaration
use autouse 'Module' => qw(func1 func2($;$));
is equivalent to
use Module qw(func1 func2);
if Module defines func2() with prototype ($;$), and func1() has
no prototypes. (At least if Module uses Exporter's import,
otherwise it is a fatal error.)
If the module Module is not loaded yet, then the above declaration
declares functions func1() and func2() in the current package. When
these functions are called, they load the package Module if needed,
and substitute themselves with the correct definitions.
Packages