in reply to hash with a hash

You can't store a hash inside of a hash, or an array inside of an array. But you can store references. Please read the perl data structures cookbook.