<?xml version="1.0" encoding="windows-1252"?>
<node id="206" title="perlfunc:pop" created="1999-08-24 18:42:06" updated="2005-08-15 07:41:02">
<type id="119">
perlfunc</type>
<author id="114">
gods</author>
<data>
<field name="doctext">
</field>
<field name="name">

&lt;P&gt;
pop - remove the last element from an array and return it

&lt;P&gt;
&lt;HR&gt;
</field>
<field name="synopsis">

&lt;P&gt;
pop 
&lt;FONT SIZE=-1&gt;ARRAY&lt;/FONT&gt;

&lt;P&gt;
pop

&lt;P&gt;
&lt;HR&gt;
</field>
<field name="description">

&lt;P&gt;
Pops and returns the last value of the array, shortening the array by 1.
Has a similar effect to

&lt;P&gt;
&lt;PRE&gt;    $tmp = $ARRAY&amp;#091;$#ARRAY--&amp;#093;;
&lt;/PRE&gt;
&lt;P&gt;
If there are no elements in the array, returns the undefined value. If 
&lt;FONT SIZE=-1&gt;ARRAY&lt;/FONT&gt; is omitted, pops the
&lt;CODE&gt;@ARGV&lt;/CODE&gt; array in the main program, and the &lt;CODE&gt;@_&lt;/CODE&gt; array in subroutines, just like [perlfunc:shift|shift()].

&lt;HR&gt;
</field>
</data>
</node>
