http://www.perlmonks.org?node_id=218129


in reply to •Re: array index -1 oddity
in thread array index -1 oddity

Really? That strikes me as a little odd and counter-intuitive. There are instances where having an array index of -1 (or -2 or -3) are quite useful. In particular, some numerical methods come to mind. I suppose that if I felt like doing that, I would need to modify a magic variable first? Like $[ if I read man perlvar correctly.

Scott
Project coordinator of the Generic Model Organism Database Project