in reply to Rotating an array

You can try
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.