#!/usr/bin/perl @A=(1,2,3); print scalar @A-1; # Index is "scalar @A - 1" !!
In reply to Re: How do I find the index of the last element in an array?
by Anonymous Monk
in thread How do I find the index of the last element in an array?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |