Name
stub
Synopsis
stub (module
[,dir
])
Generates the stubs. Takes the following arguments:
module
Name of the module, in the form Devel::SelfStubber (with no .pm at the end).
dir
Library directory that contains the module. Defaults to the current directory.
To simply print the stubs:
use Devel::SelfStubber; Devel::SelfStubber->stub(module
,dir
);
To generate the whole module, with the stubs inserted
correctly, set the variable $Devel::SelfStubber::JUST_STUBS
to
0
:
use Devel::SelfStubber; $Devel::SelfStubber::JUST_STUBS = 0; Devel::SelfStubber->stub(module
,dir
);
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.