Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: I just want to understand why ...

by Athanasius (Abbot)
on Oct 08, 2012 at 08:18 UTC ( #997764=note: print w/ replies, xml ) Need Help??


in reply to Why does testing for the existence of hash keys create the keys ?

From exists:

Although the most deeply nested array or hash element will not spring into existence just because its existence was tested, any intervening ones will.

This is called autovivification. There is a good explanation of autovivification at http://sysarch.com/Perl/autoviv.txt.

Hope that helps,

Athanasius <°(((><contra mundum


Comment on Re: I just want to understand why ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2015-07-03 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls