in reply to Re: How do I find the index of the last element in an array?
in thread How do I find the index of the last element in an array?
This will, of course, output "3".@letterList = ("a", "b", "c", "d"); #refer to the last array index #using '$#array' syntax: print $#letterList;
|
|---|