Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: why the array index has to start at 0??

by Argel (Prior)
on Jun 24, 2009 at 20:21 UTC ( #774514=note: print w/ replies, xml ) Need Help??


in reply to why the array index has to start at 0??

For better or worse "offset" was spelled "index", and thus the source of your confusion. The fact of the matter is that we are stuck with "index" whether it makes sense or not and whether we like it or not. Just think "offset" when you see "index". And never use the $[ trick!!!

Elda Taluta; Sarks Sark; Ark Arks


Comment on Re: why the array index has to start at 0??

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://774514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-04-19 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (363 votes), past polls