Help for this page

Select Code to Download


  1. or download this
    @array = reverse @array;
    for ( reverse 0.. $#array ) {
        splice @array, $_, 1, func( $array[$_] );
    }
    @array = reverse @array;
    
  2. or download this
    for( 0 .. $#array ) {
        my @results = func( $array[$_] );
    ...
                    : \@results;
    }
    @array = map{ ref $_ ? (@$_) : $_ } @array;