in reply to last index of array ref...

Something seems counterintuitive -- Why? It works the same as with arrays.