in reply to Get the length of a list.

Assuming that you have:
@arr=(1, 2, 3, 4, 3, 2, 1);
you can do:
$length_of_array=@arr; print $length_of_array."\n";