The number of elements in the planets array is: 5
The number of elements in the planets array is now: 9

Alternatively, the $#array construction returns the subscript, or index,
of the last element of the array. Since Perl arrays start at element 0, this
number will
be one less than the length of the array. So the following code sample is
another way to display the length of the @planets array: