in reply to Peek a hash without breaking iterator
Why do you want to make a copy of the hash inside the loop?