Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: why the array index has to start at 0?? (Perl!)

by ikegami (Pope)
on Jun 24, 2009 at 20:05 UTC ( #774504=note: print w/replies, xml ) Need Help??


in reply to Re^3: why the array index has to start at 0?? (Perl!)
in thread why the array index has to start at 0??

Iterating over the elements is obviously preferred, but it's not always possible. Sometimes, you need to iterate over the indexes.
  • Comment on Re^4: why the array index has to start at 0?? (Perl!)

Replies are listed 'Best First'.
Re^5: why the array index has to start at 0?? (Perl!)
by Argel (Prior) on Jun 24, 2009 at 20:44 UTC
    Of course, but tye is using examples that undermine his own arguments!! I'm still going to go with just think "offset" when you see "index".

    Elda Taluta; Sarks Sark; Ark Arks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://774504]
help
Chatterbox?
[stevieb]: Playing around with two DACs to control a single RGB LED (each DAC only has two outputs, LED has 3 inputs), and have realized that each of my IC RPi dists needs a wiring diagram, which is linked to within the documentation

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-08-20 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (317 votes). Check out past polls.

    Notices?