![]() |
![]() ![]() |
![]() |
|
|
push - append one or more elements to an array
push ARRAY,LIST
Treats ARRAY as a stack, and pushes the values of LIST onto the end of ARRAY. The length of ARRAY increases by the length of LIST. Has the same effect as
for $value (LIST) { $ARRAY[++$#ARRAY] = $value; }
but is more efficient. Returns the new number of elements in the array.
If rather than formatting bugs, you encounter substantive content errors in these documents, such as mistakes in the explanations or code, please use the perlbug utility included with the Perl distribution.
![]() |
![]() |
![]() ![]() |
![]() |
![]() |
![]() |
||
![]() |
DOCUMENTATION DOWNLOADS CPAN FAQs MARKETPLACE SEARCH REFERENCE CONTACT US | ||
![]() |
![]() |
Compilation Copyright © 1998-2000 O'Reilly & Associates, Inc.