in reply to Traversing through HoH

I hope there is some way to do it. Thanks

Why? What advantage do you perceive?

The way to do it is through recursion, example at Re: How to find all occurrences of a key in a deeply nested structure? or using Data::Walk, Data::Visitor::Callback

Replies are listed 'Best First'.
Re^2: Traversing through HoH
by snape (Pilgrim) on Apr 05, 2012 at 00:08 UTC

    I think I want to make my code less wordy.. for example, I would prefer:

    print map $_,"\t",$hash{$_},"\n", sort keys %hash

    the above code as compared to

    foreach my $key (sort keys %hash){ print $key,"\t",$hash{$key},"\n"; }