@foo=('b','a','r'); $lastindex=$#foo; #in this case 2 the index of 'r'
In reply to Re: How do I find the index of the last element in an array?
by vroom
in thread How do I find the index of the last element in an array?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |