[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Removing an element from an array



On Tue, Nov 30, 1999 at 07:11:14AM +1030, jakal wrote:
> What is the best way to remove an element from the middle of an array?
> 
> For example, if I have an array containing the ten lines of a text file,
> one line in each element of the array, and I want to delete line $x from
> the file, what is the best wau to do it?
> 

splice()

Refer to Perl Built-in Functions (perlfunc).

Ronald

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org