Charles Lu wrote: 
: Functions like pop(), push() allow you to add or remove one element to or 
: from a list.  Is there a function that allows you to add or remove "X" 
: number of elements where "X" > 1?

push() can push more than one element: push(@array, $x, $y);

But splice() can handle the more general case of pushing/popping from
either end of the array, and can also remove or replace elements within
the array.

Do "perldoc -f splice" for more info.

-- tdk

Reply via email to