Reference: pop
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:36:46Z

#

| Chapter 5 Function Reference |

## pop

    pop @array

Treats an array like a stack, popping and returning the last value of the array, shortening the array by one element. If array is omitted, the function pops `@ARGV` (in the main program), or `@_` (in subroutines).

If there are no elements in the array, `pop` returns the undefined value. See also `push` and `shift`. If you want to pop more than one element, use `splice`.

Reference: pipe |  | Reference: pos