in reply to Adding data to hashes & comparing

In addition to the great references (pun intended) above, you may find the following useful:

HTH,

planetscape