Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: The Anomalous each()

by jdhedden (Deacon)
on Nov 18, 2005 at 20:39 UTC ( [id://509944]=note: print w/replies, xml ) Need Help??


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

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.)

Replies are listed 'Best First'.
Re^5: The Anomalous each()
by Fairy Nuff (Novice) on Nov 18, 2005 at 20:43 UTC

    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*

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://509944]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found