You mean like this?

foreach(keys %hash){
   $hash{$_} = 0;
}

-----Original Message-----
From: Michael Stearman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 2:01 PM
To: [EMAIL PROTECTED]
Subject: Setting hash values equal to zero




Hi!

I have a hash and I want to set all the values equal to zero.  I want to 
keep the keys as they are though.  Anyone know how?
Thanks,
Mike.

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------------------
This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to