Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: Autovivification with hash of hashesby pg (Canon) |
on Jan 26, 2003 at 05:25 UTC ( [id://229940]=note: print w/replies, xml ) | Need Help?? |
I am quite confused with your second piece of code. What does it try to demo? What is your expected result (to print out the "popped into existence" or not, I tested it, and it printed)? Also I don't know whether you realize that you actually used the concept of symblic reference in your second demo. I changed your second demo a little bit, and added comments to explain: update: Yes, Aristotle is right, and I messed up with && and ||, Thanks for pointing out. However this mistake does not reduce the value of this post, and the post as a whole is still correct, especially the discussion on symbolic reference. I keep the mistake there (Remove the original mistake pointed out by other monks, would make other monk's reply funny, and sounds like irrelevant, and I don't do this ;-) "And the latter is exactly what he's talking about protecting against by using ref."
In Section
Seekers of Perl Wisdom
|
|