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
- Pushing more than 1 item onto a list Charles Lu
- Re: Pushing more than 1 item onto a list Paul
- Re: Pushing more than 1 item onto a list Brett W. McCoy
- Re: Pushing more than 1 item onto a list Chas Owens
- Re: Pushing more than 1 item onto a list Karthik Krishnamurthy
- Timothy Kimball