TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:21227] Newbie perl question
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. :)
Nick Reinking
trammell@nitz.hep.umn.edu, on 09/12/2000 07:25:27 AM
To: tclug-list@mn-linux.org @ PMDF
cc:
Subject: Re: [TCLUG:21227] Newbie perl question
How about:
my @new = grep { $_ ne $addr } @old;
J
---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
For additional commands, e-mail: tclug-list-help@mn-linux.org