Next Hook::LexWrap 16

Altering the Return Value: Prewrappers

        $prereturn = $return = [];
        () = $wrapper{pre}->(@_,$return) if $wrapper{pre};
        if (ref $return eq 'ARRAY' && $return == $prereturn && !@$return) {
                $return = [ &$original ];
                () = $wrapper{post}->(@_, $return)
                        if $wrapper{post};
        }
        return ref $return eq 'ARRAY' ? @$return : ($return);


Next Copyright © 2003 M. J. Dominus