|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Autovivification trickby ikegami (Pope) |
| on Aug 13, 2006 at 22:52 UTC ( #567124=note: print w/ replies, xml ) | Need Help?? |
|
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.
In Section
Snippets Section
|
|
||||||||||||||||||||