Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[ambrus]: nah, I have sane bosses, I make my incompetence obvious, and have resistance myself.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2017-09-22 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (264 votes). Check out past polls.

    Notices?