print scalar @my_array; (see scalar).
In reply to Re: Printing the length of an array ? by kyle in thread Printing the length of an array ? by jflevi