> >         "Array and placeholder indices both start at *zero*!"
   > 
   > Sorry for being late, but "why?!"
   > 
   > It makes more sense in a vacuum, but given $1, $2, etc, I'd *much* more
   > expect them to start with ^1, ^2, and so on. It's much more consistent.

But ^1, ^2, etc. have *nothing* to do with $1, $2, except analogically.
And I'm removing that analogy from the next version of the RFC! ;-)

They have *everything* to do with $_[0], $_[1], $_[2], etc.

In fact, every kind of indexing in Perl -- *except* $1, $2, etc. --
starts at zero. Fixing $0's semantics would be far more consistent than
breaking ^0.

Damian

Reply via email to