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
In Section
Seekers of Perl Wisdom