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

varying length multi-dimensional hashes

by joe (Acolyte)
on Oct 04, 2000 at 22:05 UTC ( [id://35303]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<>) {
       ($a, $b, $c, $d) =~ /(...)(...)(...)(...)/;
       $hash{$a}{$b}{$c}{$d}++;
    }
    
  2. or download this
     foreach $key (keys %hash) {
       foreach $key1 (keys %{$hash{$key}}) {
    ...
          }
        }
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-24 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found