As you can read in another node by me in this thread, I also dislike the typing exercise that one needs to practice every time a deep HoHoHoH element is needed. However, I don't like joining all keys together, because that makes iterating or assigning a reference to a deeper hash hard, or impossible, depending on the time available for hacking up ugly solutions.
Still, if I would join keys together, I'd do so with Perl's own built-in mechanism for that. Supply a list as a hash key and perl automatically joins it with $;. It'd be nice if there was an interpolating qw. :)
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In reply to Re: Dotted hash access
by Juerd
in thread Dotted hash access
by sfink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |