Next Hook::LexWrap 17

Altering the Return Value: Prewrappers

        $prereturn = $return = [];
        $dummy = $wrapper{pre}->(@_,$return) if $wrapper{pre};
        if (ref $return eq 'ARRAY' && $return == $prereturn && !@$return) {
                $return = &$original;
                $dummy = $wrapper{post}->(@_, $return)
                        if $wrapper{post};
        }
        return $return;
        In a pre-wrapper, $_[-1] is -- for obvious reasons -- undef. 


Next Copyright © 2003 M. J. Dominus