bluesplay106 has asked for the wisdom of the Perl Monks concerning the following question:
my %hash = (); my %innerhash = (); # Fills hashes with stuff $hash{$somekey} = \%innerhash; # Trying to loop through each key in inner hash foreach my $key (keys %hash) { while(my ($key1, $value1) = each (%{$hash{$key}}) ) { print "$key1 $value1\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash in a Hash Issue
by toolic (Bishop) on Jul 23, 2013 at 18:53 UTC | |
|
Re: Hash in a Hash Issue
by NetWallah (Canon) on Jul 24, 2013 at 06:05 UTC | |
|
Re: Hash in a Hash Issue
by nevdka (Pilgrim) on Jul 23, 2013 at 23:49 UTC | |
|
Re: Hash in a Hash Issue
by 2teez (Vicar) on Jul 23, 2013 at 23:07 UTC |