Help for this page

Select Code to Download


  1. or download this
    while ( <MYFILE> ) {
       chomp;
    ...
       my $key_to_reduce = join ".", "$subc", "$state";
       print "$key_to_reduce\t$amount\n";
    }
    
  2. or download this
    while ( <MYFILE> ) {
       # not needed if you don't use last field 
    ...
    
       print "$key_to_reduce\t$amount\n";
    }