autouse

autouse

NAME

autouse - postpone load of modules until a function is used

SYNOPSIS

use autouse 'Carp' => qw(carp croak);
carp "this carp was predeclared and autoused ";

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 prototy