Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Autovivification trick

by ikegami (Pope)
on Aug 13, 2006 at 22:52 UTC ( #567124=note: print w/replies, xml ) Need Help??


in reply to Autovivification trick

I'm not sure the diminished readabilty brought on by a second level of indirection is worth avoiding the use of ||= {}.

However, its use is localized, so one can understand the function of the code (through comments) without having to understand the trick.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://567124]
help
Chatterbox?
[ambrus]: marto: yep, no surprise

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-10-20 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (263 votes). Check out past polls.

    Notices?