Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Hash with three keys

by Jeri (Scribe)
on Dec 12, 2013 at 21:00 UTC ( [id://1066916]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $key1 (sort keys %hash){
        foreach my $key2 (sort keys %{$hash{$key1}}){
            print "$key1\t$key2\t$hash{$key1}{$key2}\n";
        }
    }
    
  2. or download this
    foreach my $key1 (sort keys %hash){    
        foreach my $key2 (sort keys %{$hash{$key1}} ){
    ...
            }
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-19 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found