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 at nitz.hep.umn.edu, on 09/12/2000 07:25:27 AM
To: tclug-list at 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 at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org




-------------- next part --------------
---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org