Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Why does exists cause autovivication? (myth, mods)

by Dumu (Monk)
on Jul 09, 2015 at 09:24 UTC ( [id://1133920]=note: print w/replies, xml ) Need Help??


in reply to Re: Why does exists cause autovivication? (myth, mods)
in thread Why does exists cause autovivication?

Fortunately, we now have the autovivification pragma on CPAN... tye, you couldn't have specified it better!

  • Comment on Re^2: Why does exists cause autovivication? (myth, mods)

Replies are listed 'Best First'.
Re^3: Why does exists cause autovivication? (XS--)
by tye (Sage) on Jul 09, 2015 at 17:18 UTC

    No, the autovivification pragma on CPAN tries to be what I described but it accomplishes it an unfortunately very complex way. It has to reimplement a bunch of Perl guts inside of the module. The level of hidden complexity is impressive, which makes the potential for subtle problems that are very hard to diagnose also high.

    As much as I'd like a "don't autovivify" pragma, I won't use its 1800 lines of XS code given how many subtle bugs I've spent way too much time on from much, much fewer and simpler lines of XS so many times.

    - tye        

Log In?
Username:
Password:

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

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

    No recent polls found