Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by citromatik (Curate)
on Jun 23, 2009 at 11:53 UTC ( #773978=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package base1arrays;
    
    ...
    
    1;
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    # "negative" (< 1) index also works
    say $arr[0];  # Prints 5
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2015-07-30 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls