Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 avoiding work at the Monastery: (7)
As of 2014-08-29 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls