-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
push returning total number elements instead of number new elements #8116
Comments
From perlbug@daveola.comCreated by perlbug@daveola.comThe 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); Should display 1, but it displays 101. Perl Info
|
From charles.e.derykus@boeing.com
I believe that should be interpreted "the new (total) number of elements -- |
The RT System itself - Status changed from 'new' to 'open' |
From @tamiasOn Fri, Sep 16, 2005 at 01:38:41PM -0700, David Ljung Madison wrote:
push returns the new (number of elements) in the array, not the number of Ronald |
From jjuran@gmail.comOn Sep 16, 2005, at 4:38 PM, David Ljung Madison (via RT) wrote:
Right -- the new number of elements, as opposed to the number of new
My reading of the docs you quoted is consistent with the exhibited Josh |
From @smpeters
The documentation of "push" has been clarified to indicate that it Change 25678 by stevep@stevep-kirk on 2005/10/02 04:42:46 Clarify the documentation regarding the return value from C<push>. |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37186 (status was 'resolved')
Searchable as RT37186$
The text was updated successfully, but these errors were encountered: