stub (module
[,dir
])
Generates the stubs. Takes the following arguments:
Name of the module, in the form Devel::SelfStubber (with no .pm at the end).
Library directory that contains the module; defaults to the current directory.
To just print the stubs:
To generate the whole module, with the stubs inserted correctly, set the variableuse Devel::SelfStubber; Devel::SelfStubber->stub(module, dir);
$Devel::SelfStubber::JUST_STUBS
to 0:
use Devel::SelfStubber; $Devel::SelfStubber::JUST_STUBS = 0; Devel::SelfStubber->stub(module, dir);