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

Re^6: exists on hash autovivifies right?

by starbolin (Hermit)
on Jun 29, 2008 at 19:47 UTC ( [id://694632]=note: print w/replies, xml ) Need Help??


in reply to Re^5: exists on hash autovivifies right?
in thread exists on hash autovivifies right?

The current behavior is much preferred by some over the danger of having uninitialized pointers, a la C.


s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

Replies are listed 'Best First'.
Re^7: exists on hash autovivifies right?
by Anonymous Monk on Jun 29, 2008 at 20:51 UTC
    all you said is that it is probably better than something worse. nice logic. why do you compare with something better, and try to improve, instead of looking backwards?

      I don't feel an overwhelming need to do anything with regards to auto-vivification as I don't recall it ever being an major issue in any of my programs. In fact, if I see auto-vivification in my data set, that triggers a voice in my head that says "Ah, I abused a reference somewhere!" The only times I have ever had to really struggle with it is when others have coded bizarre, twisted, incorrect, algorithms and then, complained about perl creating spurious data elements when, in fact, perl was merely trying to save them from themselves.

      If you feel an overwhelming need to retool auto-vivification then please, feel free to come up with an implementation and push it up to the perldev community.


      s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found