Wrap::Sub::Child - Provides for Wrap::Sub
Please refer to the Wrap::Sub parent module for full documentation. The descriptions here are just a briefing.
Wrap::Sub
This method can only be called by the parent Wrap::Sub module.
Returns bool whether the wrapped sub has been called yet.
Returns a list of arguments the wrapped sub was called with.
This method should only be called by the parent wrap object. You shouldn't be calling this.
Re-wraps an unwrapped sub back to the same subroutine it was originally wrapped with.
Returns bool whether the sub the object represents is currently wrapped or not.
Returns the name of the sub this object is wraping.
Send in a code reference containing actions you want performed before the wrapped sub is called.
Send in a code reference containing actions you want performed after the wrapped sub is called.
Resets all state of the object back to default (does not unwrap the sub).
Restores original functionality of the wrapped sub, and calls reset() on the object.
reset()
To install Wrap::Sub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wrap::Sub
CPAN shell
perl -MCPAN -e shell install Wrap::Sub
For more information on module installation, please visit the detailed CPAN module installation guide.