http://www.perlmonks.org?node_id=144320


in reply to Clearing Array Values

well, in my opinion, one would be better off using :
@myarray = ();
When you use
$#myarray = ()
you are referring to the number of elements in the array, not the array itself, since $#myarray gets the number of array elements present