$num_of_elements = scalar @array; [download]
In reply to Re: Finding the total number of elements in an array. by le in thread Finding the total number of elements in an array. by Anonymous Monk