Short answer: you should always reset the iterator before you use each on a hash in a function.
Long answer: I think that you should always reset the hash iterator before you use each() on a hash in a function.
Jeff japhy Pinyan,
P.L., P.M., P.O.D, X.S.:
Perl,
regex,
and perlhacker How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
Comment on Re: when do i know that the iterator for a hash was reseted