Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Please Help wiht Hashes

by chicks (Scribe)
on May 10, 2002 at 20:43 UTC ( [id://165772]=note: print w/replies, xml ) Need Help??


in reply to Please Help with Hashes

What doesn't work about it? It seems fine. I tweaked it a bit to demonstrate:
%h1 = ( "key1","value1","Key2", "value2" ); %h2 = ( "Key3","value3","key4", "value4" ); # Declared two hashes %hoh = ( "key1" => \%h1, "key2" => \%h2 ); foreach $key (keys %hoh) { $innerHashRef = $hoh{$key}; foreach $innerHashKey (keys %$innerHashRef) { print "Inner Key: $innerHashKey\n"; # this does work } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://165772]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-23 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found