Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-11-22 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (319 votes). Check out past polls.

    Notices?