in reply to Re^2: The Anomalous each()
in thread The Anomalous each()

Ok, so don't give your hash to functions you don't control if you think that's going to be a problem.

Replies are listed 'Best First'.
Re^4: The Anomalous each()
by jdhedden (Deacon) on Nov 18, 2005 at 20:39 UTC
    Better wording would be:
    Caution: Don't use each() for a loop if you have to hand your hash to a function unless you know for sure that the function definitely won't use each()/keys()/values() on it. (It's probably a sure bet that if you hand off a hash to a function it will do just that.)

      I tend not to put actual labels that say "Caution: ..." but its reasonable that there be some appropriate language in the documentation.

      Anyhow, its fair enough. *wink*