Help for this page

Select Code to Download


  1. or download this
    my %count;
    while (...) {
    ...
     #
     push @{$count{$field1}}, $field2;
    }
    
  2. or download this
    my %count;
    while (...) {
    ...
        $count{$field1} = $field2; # normal assignment
      }
    }
    
  3. or download this
    print Dumper(\%count);