On Fri, Sep 16, 2005 at 01:38:41PM -0700, David Ljung Madison wrote:

> The return value for push is the total number of elements in the array.
> 
> According to the docs, push:
> 
>   "Returns the new number of elements in the array."
> 
> Example code:
> 
>   my @j = (1..100);
>   print push(@j,42), "\n";
> 
> Should display 1, but it displays 101.

push returns the new (number of elements) in the array, not the number of
(new elements) in the array.

Ronald

Reply via email to