This would work, but then he'd have an array with a bunch of NULLs in it.
So, if he's got a majordomo mailing list, say, it'd try to send messages to
an email address called NULL.

Gabe

On Tue, Sep 12, 2000 at 02:18:33PM -0500, Adam Maloney wrote:
> 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

-- 
--------------------------------------------------------------------------------
Gabe Turner				       |  	   X-President,
UNIX Systems Administrator,		       | Assoc. for Computing Machinery
U of M Supercomputing Institute for	       |    Univerisity of Minnesota
Digital Simulation and Advanced Computation    |       dopp at acm.cs.umn.edu

"Look!  It's my magic nose goblins!" -- Stimpy
"I finally get a good look at 'em!" -- Sven
				- Stimpson J. Cat and Sven Hoek in "Sven Hoek"
--------------------------------------------------------------------------------

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