Use a for (keys %hash) if you want it to get reset.
In reply to Re: Why Doesn't each() DWIM? by ambrus in thread Why Doesn't each() DWIM? by enoch