Next Hook::LexWrap 18

Altering the Return Value: Prewrappers

        $return = bless sub {$prereturn=1}, 'Hook::LexWrap::Cleanup';
        my $dummy = $wrapper{pre}->(@_, $return) if $wrapper{pre};
        unless ($prereturn) {
                $return = &$original;
                $dummy = scalar $wrapper{post}->(@_, $return)
                        if $wrapper{post};
        }
        return $return;
        sub DESTROY { $_[0]->() }


Next Copyright © 2003 M. J. Dominus