Generates stubs in a module that uses the SelfLoader, either printing the necessary stubs or generating the whole module with the stubs inserted in the correct location before the _ _DATA_ _ token. The default is to simply print the stubs.
stub |
stub (module[, dir])
Generates the stubs. Takes the following arguments:
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);
Copyright © 2002 O'Reilly & Associates. All rights reserved.