If the key matches, then
$MyTotal{$MyFileHandle}++;
This will increment $MyTotal by 1 for the key $MyFileHandle.
Wags ;)
-----Original Message-----
From: Allison Ogle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 06:59
To: [EMAIL PROTECTED]
Subject: Hash Values (again)
Hi,
I have a hash with all the values set to zero. I want to use the filehandle
and if the filehandle matches a key in the hash I want to increment the
value from zero. Does anyone know how to do this? I'm lost with hashes :(
Thanks,
Allison
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]