pop(ARRAY)

pop ARRAY

Pops and returns the last value of the array, shor-
tening the array by 1. Has the same effect as

$tmp = $ARRAY[$#ARRAY--];

If there are no elements in the array, returns the
undefined value.