⭐ in reply to How do I find the index of the last element in an array?
@foo=('b','a','r'); $lastindex=$#foo; #in this case 2 the index of 'r' [download]