Could you do this:

@addrlist = grep(!/$addr/, @addrlist);

Dave Sherohman wrote:
> 
> I've got a list of email addresses, @addrlist, and an address, $addr, which
> may or may not be in @addrlist and, if it is there, should be removed.
> 
> What's the easiest way to locate and remove $addr from @addrlist?
> 
> --
> "Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
> "So does syphillis. Good thing we have penicillin." - Matthew Alton
> Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P+>+++ L+++>++++ E- W--(++) N+ o+
> !K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI++++ D G e* h+ r++ y+
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
> For additional commands, e-mail: tclug-list-help at mn-linux.org

-- 
Troy Johnson   mailto:john1536 at tc.umn.edu   http://umn.edu/~john1536/
I saw a subliminal advertising executive, but only for a second.
						-- Stephen Wright

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