;
Sent: Tuesday, August 21, 2001 8:05 PM
Subject: comparing hash values
> I am trying to populate a hash with key/value pairs, basically the file
name and its dates. I am extracting part of the file name to use as the key.
Some of the keys will be the same. I want to put a new value in only if i
On Tue, Aug 21, 2001 at 11:12:55AM -0700, Wagner-David wrote:
> You can do:
>
> if ( exists $hash{$Key} ) {
> # the key exists, so do your check
>}else {
> # key does not exist, so add to hash
>}
>
> Also can use defined, but depe
(if use is as defined $hash->{$Key} ) then from
the list I see the auto-vivfying kicking in.
Wags ;)
-Original Message-
From: Darfler, Jim (J.E.) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 11:05
To: '[EMAIL PROTECTED]'
Subject: comparing hash values
I
I am trying to populate a hash with key/value pairs, basically the file name and its
dates. I am extracting part of the file name to use as the key. Some of the keys will
be the same. I want to put a new value in only if its newer than the value currently
stored.
My problem is, how do I know