Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

varying length multi-dimensional hashes

by joe (Acolyte)
on Oct 04, 2000 at 22:05 UTC ( #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}}) {
    ...
          }
        }
      }