Me again!?!?
Question:
I need to associate hash elements to arrays. That is (something like this):
$hash{THIS} -> @array1;
$hash{THAT} -> @array2;
Does that make any sense? Basically, I need to look to see if a hash key exists, if it does, then loop thru the corresponding array.
How would I set something like this up? Or, can someone think of a better way of doing this?
Question:
I need to associate hash elements to arrays. That is (something like this):
$hash{THIS} -> @array1;
$hash{THAT} -> @array2;
Does that make any sense? Basically, I need to look to see if a hash key exists, if it does, then loop thru the corresponding array.
How would I set something like this up? Or, can someone think of a better way of doing this?