Help for this page

Select Code to Download


  1. or download this
    Key1          Key2             Value
    --------------------------------------
    ...
    red           shoes            20
    yellow        shoes            1
    yellow        skates           1000
    
  2. or download this
    while (<>){
        ...
        $hash{key1}{key2}[0]++;
        ...
    }
    
  3. or download this
    for $colour (sort keys %hash){
         for $device (sort keys %{ $hash{$colour}}){
    ...
              $colour, $device, $hash{$colour}{$device}[0]  );
         }
    }