push @arr, splice @arr, 0, $idx
In the end you'll have to benchmark to find which of the solutions is the fastest for you.
In reply to Re: Rotating an array
by moritz
in thread Rotating an array
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |