Why do you want to make a copy of the hash inside the loop?
In reply to Re: Peek a hash without breaking iterator by shawnhcorey in thread Peek a hash without breaking iterator by hurricup