in reply to Re: Extracting values from nested hashrefs
in thread Extracting values from nested hashrefs
Ah, sorry, my example was too simple. It should have been like this:
my $animals = { gnu => { humps => 0, mascot_for => 'emacs', }, dromedary => { humps => 1, mascot_for => 'perl', }, camel => { humps => 2, mascot_for => 'perl', }, };
BTW, implicit traversing is OK; I just wanted to avoid some sort of loop with , say while.
Thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extracting values from nested hashrefs
by choroba (Cardinal) on Sep 12, 2012 at 09:45 UTC | |
|
Re^3: Extracting values from nested hashrefs
by Athanasius (Archbishop) on Sep 12, 2012 at 12:46 UTC |