in reply to [SOLVED]: Need help with range expression ('0 .. -0.5' === '0 .. 0.5')

Try this?:

push @array, reverse @array[ $n > 2 ? 0 .. $n / 2 - 1 : 0 ];

Edit: no, try this:

push @arr, $#arr < 1 ? () : reverse @arr[ 0 .. ($#arr % 2 ? $#arr : $# +arr - 1)];


The way forward always starts with a minimal test.