Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Autovivification with hash of hashes

by pg (Canon)
on Jan 26, 2003 at 02:00 UTC ( [id://229920]=note: print w/replies, xml ) Need Help??


in reply to Autovivification with hash of hashes

To auto-vivificate when you call exists or defined is conceptually wrong, and it is actually a reported bug. However it is not likely that this will be fixed before Perl 6. If you look into the c code, you would see how complex the fix would be.

In Perl 6, auto-vivification would still be there, and you know that it is extreamly helpful in creating complex reference structures.

But it would become more context aware, and most likely only auto-vivificate if you use the ref structure as lvalue.

  • Comment on Re: Autovivification with hash of hashes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found