in reply to Manipulate deepest values in complex hash structures
if (scalar( @{$hash{$key}} ) > 0) { foreach my $list_element (@{$hash{$key}}) {
But I'm pretty sure you are reinventing the wheel, better search the archives or CPAN. (Maybe Data::Diver or Data::Walker already do what you want.)
Cheers Rolf
( addicted to the Perl Programming Language)
various ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Manipulate deepest values in complex hash structures
by LanX (Saint) on Apr 29, 2013 at 21:21 UTC | |
by pachydermic (Beadle) on May 01, 2013 at 17:07 UTC | |
by LanX (Saint) on May 01, 2013 at 17:38 UTC | |
|
Re^2: Manipulate deepest values in complex hash structures
by RecursionBane (Beadle) on Apr 29, 2013 at 20:30 UTC |