There's more than one way to do things | |
PerlMonks |
Re: •Re: array index -1 oddityby scain (Curate) |
on Dec 06, 2002 at 19:07 UTC ( [id://218129]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|