![]() |
![]() ![]() |
![]() |
|
|
pop - remove the last element from an array and return it
pop ARRAY
pop
Pops and returns the last value of the array, shortening the array by 1. Has a similar effect to
$tmp = $ARRAY[$#ARRAY--];
If there are no elements in the array, returns the undefined value. If
ARRAY is omitted, pops the
@ARGV
array in the main program, and the @_
array in subroutines, just like shift().
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.