On 2012-05-14, at 07:51, David Cantrell wrote:
For extra excitement, perl has this nifty feature where you can index from the end of an array using negative numbers:@array = ('ant', 'bat', 'camel', 'dolphin'); print $array[-1]; # dolphin print $array[-2]; # camel
That really _is_ a nifty feature, it makes all kinds of code so much simpler when origin is zero. But it interacts oddly with ANY origin changes. What happens to it when origin is 1? Does it mean array[0] is the last element?