Help for this page

Select Code to Download


  1. or download this
    push @array, reverse @array[ $n > 2 ? 0 .. $n / 2 - 1 : 0 ];
    
  2. or download this
    push @arr, $#arr < 1 ? () : reverse @arr[ 0 .. ($#arr % 2 ? $#arr : $#
    +arr - 1)];