Perl array length (size)
Perl array length FAQ: "How can I determine the length of a Perl array?"
Solution
There are several different ways to determine the Perl array length, and I show those here.
Solution 1: Perl array length
The first way to determine the Perl array length is by simple assigning a scalar variable to the array, like this: