http://qs1969.pair.com?node_id=472904


in reply to Puzzled by array

It's easier to see that the array @letters is fully rotated if you change the loop to: for (1..@letters-1) { so you can see the last step before full rotation.

Replies are listed 'Best First'.
Re^2: Puzzled by array
by kiat (Vicar) on Jul 06, 2005 at 18:24 UTC
    Thanks, neniro!

    That and rammell's update 2 helped. As I was brushing my teeth, it suddenly hit that I was having something like

    (last_changed_array_of_letters last_changed_array_of_letters last_changed_array_of_letters last_changed_array_of_letters)

    in @array2.