Ran Eilam > Aspect-0.12 > Aspect::Hook::LexWrap

Download:
Aspect-0.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: 0.20   Source  

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.
syntax highlighting: