Help for this page

Select Code to Download


  1. or download this
        if (GIMME == G_ARRAY) {
        MARK++;
    ...
        /* safe as long as stack cannot get extended in the above */
        SP = oldsp;
        }
    
  2. or download this
    ( $MARK, $SP ) = ( 0, $#array );
    while( $MARK < $SP ) {
    ...
        $array[ $MARK++ } = $array[ $SP ];
        $array[ $SP-- ] = tmp;
    }
    
  3. or download this
    @r = reverse 1, @r;