For HoHes nested arbitrarily deep:
sub walk_hash { my $h = shift; foreach my $key (keys %$h) { if( ref $h->{$key}) { walk_hash( $h->{$key} ); } else { print $h->{$key}; } } }
This has been tested.
In reply to Re: I've got a hash of hashes how do i get my values out
by hardburn
in thread I've got a hash of hashes how do i get my values out
by progressive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |