for ($i=0;$i<scalar(@addrlist);$i++) {
  if ($addrlist[$i] eq $addr) {
    $addrlist[$i] = "NULL";
  }
}

then when you print/use the addrlist array, just do a check to see if the
value is null.

Adam Maloney
Systems Administrator
Sihope Communications

On Tue, 12 Sep 2000, 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
> 
> 


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