in reply to iterate/traverse Two Hashes at once

Yes, there is a way to extract (key,value) pairs from a hash, but this is used far less often used than just iterating through the key values.

The order of keys when iterating over all keys in a hash is not defined (unless you read 'em all and then sort 'em or such).

I am perplexed as to what you would want to do in your proposed loop given that the key,value pairs from %hash1 would have no correlation with %hash2?

  • Comment on Re: iterate/traverse Two Hashes at once