On Thu, 1 Aug 2002, Stephen Rawls wrote: > > It should pass them on to the PMC directly, which > > should then handle them properly. > > Let me rephrase. How should the PerlArray pmc handle > negative indecis when the absolute value of the index > is greater than the size of the array.
IMHO it would be most consistent with the way autovivification of positive indices works to extend the array to the left and set the first element, e.g. @a = (1); @a[-3] = 2; # @a == (2, undef, 1) Perl 5 says this is a "modification of a non-creatable array value", though. /s