NAME

Aspect::Hook::LexWrap - Lexically scoped subroutine wrappers

DESCRIPTION

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.

ORIGINAL AUTHOR

Damian Conway (damian@conway.org)

SEE ALSO

See the Aspect pods for a guide to the Aspect module.

COPYRIGHT

      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.