in reply to hashes of hashes
I believe it will be helpful for you to browse through our Tutorials; in particular, intro to references and References quick reference will aid your understanding of what is happening in your code.
HTH,