in reply to Dynamically creating a hash based on a variable

I hope I have interpreted your question correctly, if not apologies.
You can find out if the hash exists with: if defined. However, you might consider another way of doing this. I suggest you create a single hash where the keys are the dates. The value to each key would be a reference to an anonymous hash, like this:
$hash{$date} = {};
To "play with the hash", adding values would be:
$hash{$date}->{key} = value;
To see if the hash exists, use exists:
if (exists $hash{$date}) {...}

Replies are listed 'Best First'.
Re^2: Dynamically creating a hash based on a variable
by beethamd (Initiate) on Apr 15, 2007 at 14:13 UTC
    Thank you - Seems I need to read about hashes tonight.