Try this?:
Edit: no, try this:
push @arr, $#arr < 1 ? () : reverse @arr[ 0 .. ($#arr % 2 ? $#arr : $# +arr - 1)];
In reply to Re: Need help with range expression ('0 .. -0.5' === '0 .. 0.5')
by 1nickt
in thread [SOLVED]: Need help with range expression ('0 .. -0.5' === '0 .. 0.5')
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |