Aspect::Hook::LexWrap - Lexically scoped subroutine wrappers
This is Hook::LexWrap with a small change: instead of getting (@_, $return) as their parameters, wrappers get (\@_, $original, $return). This allows you to inject and remove parameters for the wrapped sub, and to call the original sub from the wrapper. Both are unsupported in the original.
(@_, $return)
(\@_, $original, $return)
Damian Conway (damian@conway.org)
See the Aspect pods for a guide to the Aspect module.
Copyright (c) 2001, Damian Conway. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
To install Aspect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Aspect
CPAN shell
perl -MCPAN -e shell install Aspect
For more information on module installation, please visit the detailed CPAN module installation guide.