in reply to Re^3: re-key a hash
in thread re-key a hash

You're right; I misread the loop. There's no problem at all, then, except that the code doesn't do what he wants.