in reply to How do I get the last element of an array?

You can use $#array as the index of the last element in @array.

Originally posted as a Categorized Answer.

  • Comment on Re: How do I get the last element of an array?