TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:21227] Newbie perl question



Nick Reinking <Nick.T.Reinking@supervalu.com> wrote:

> That's as efficient as the loop-splice example, but it
> uses more memory as it duplicates the array.
>
> Not a big deal, but it could be if you had 100k addresses
> or something.  :)

You're right.  It should have read:

@old = grep { $_ ne $addr } @old;