in reply to when do i know that the iterator for a hash was reseted

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 perl hacker
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