in reply to extracting values from hashes

Given that you spoke only abstractions, like "array" and "hash", I would suspect this is homework.

However, you access the value of a hash in the same way you used exists. So you were mostly there.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.