in reply to working with multiple hash refs
my %h; # the inverted hash for my $de ( keys %{ $hash{A}{B}{C} } ) { # gives D, E for my $k ( keys %{ $hash{A}{B}{C}{$de} } ) { $h{$k}{$de} = $hash{A}{B}{C}{$de}{$k}; } } # now print it out: for my $k ( sort keys %h ) { for my $de ( sort keys %{$h{$k}} ) { print "$k = $h{$k}{$de} (from $de)\n"; } }
jdporter
...porque es dificil estar guapo y blanco.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: working with multiple hash refs
by sauoq (Abbot) on Dec 19, 2002 at 22:18 UTC | |
by jdporter (Paladin) on Dec 20, 2002 at 01:02 UTC | |
by sauoq (Abbot) on Dec 20, 2002 at 01:23 UTC |