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 ...
In reply to Re: Manipulate deepest values in complex hash structures
by LanX
in thread Manipulate deepest values in complex hash structures
by RecursionBane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |