in reply to Using foreach to process a hash

You might also wish to have a look at Not Exactly a Hash Tutorial, or at any other of our very fine Tutorials.

HTH,

planetscape