in reply to How do I find the index of the last element in an array?
Just for any newbies...
Don't forget array indicies start at zero
@letterList = ("a", "b", "c", "d"); a is at position 0 b " " " 1 c " " " 2 ...
Hope that helps out anyone who fell for the oldest trick in the book
Mark
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Answer: How do I find the index of the last element in an array?
by jens (Pilgrim) on Oct 14, 2002 at 04:30 UTC |
In Section
Seekers of Perl Wisdom