splice @array, -$number; [download]
In reply to Re: array pop by choroba in thread array pop by Anonymous Monk