in reply to Dotted hash access
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' }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dotted hash access
by sfink (Deacon) on Nov 28, 2004 at 19:08 UTC | |
by demerphq (Chancellor) on Dec 02, 2004 at 16:16 UTC | |
by sfink (Deacon) on Dec 03, 2004 at 04:24 UTC |