in reply to hash confusion
Basically, you make sure that $1 is in the hash, and that its associated value is the same as $2