Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can someone help me please! Thanks!!!%h1 = ( "key1","value1","Key2", "value2" ); %h2 = ( "Key1","value1","key2", "value2" ); # Declared two hashes %hoh = ( "key1" => \%h1, "key2" => \%h2 ); foreach $key (keys %hoh){ $innerHashRef = $hoh{$key}; foreach $innerHashKey (keys %$innerHashRef){ print "Inner Key: $innerHashKey"; <-- this does not work } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Please Help wiht Hashes
by particle (Vicar) on May 10, 2002 at 20:44 UTC | |
|
Re: Please Help wiht Hashes
by chicks (Scribe) on May 10, 2002 at 20:43 UTC | |
|
Re: Please Help with Hashes
by cLive ;-) (Prior) on May 11, 2002 at 11:58 UTC | |
|
Re: Please Help wiht Hashes
by thelenm (Vicar) on May 10, 2002 at 20:43 UTC |