in reply to why the array index has to start at 0??
Some languages, such as Pascal, do start with an index of '1' although for whatever reason they are in the minority. “It's just one of those things.”
In my experience, though, “arrays” are not that common. Usually you see people using either hash-tables or lists. Perl's “array,” of course, really is (in practical effect...I do not wish to slice words here...) a list.
Replies are listed 'Best First'. | |
---|---|
Re^2: why the array index has to start at 0??
by Marshall (Canon) on Jun 23, 2009 at 20:47 UTC |
In Section
Seekers of Perl Wisdom