POP

pop ARRAY

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.

Back to functions