Help for this page

Select Code to Download


  1. or download this
    joe_average:  2.2
    jack_average: 3.2
    ...
    joe_average:  3.2
    jack_average: 4.2
    stan_average: 5.1
    
  2. or download this
     
    my %stats;
    while (<FILE>) {
    ...
        printf( "%19s: %5d %8.2f\n", $_, $stats{$_}{count},
                 $stats{$_}{sum} / $stats{$_}{count} );
    }