On Wed, 2002-04-03 at 17:00, Michael Stearman wrote:
> 
> 
> 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.

$hash{$_} = 0 for keys %hash;

is one way
 
-- 
Today is Pungenday the 20th day of Discord in the YOLD 3168
Kallisti!

Missile Address: 33:48:3.521N  84:23:34.786W


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

Reply via email to