Sounds like you don't need step 2. at all, since you can simply access the hash item by key.
In reply to Re^2: Comparing two hashes by moritz in thread Comparing two hashes by midnight