If you have:
the index of the last element is 2, because@a = (1,3,5);
is the last element. The *value* of the last element is "5", but that's neither here nor there.$a[2]
Does that make sense?
In reply to RE: Arrays: Last-index special variable vs. scalar values
by btrott
in thread Arrays: Last-index special variable vs. scalar values
by mwp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |