in reply to How can I reference a hash value with an array
I think you're talking about creating a Hash of Arrays. Take a look at perldsc.