⭐ in reply to How do I find the index of the last element in an array?
my @demo = ("one", "two", "three", "four"); print $demo[-1]; [download]