Help for this page

Select Code to Download


  1. or download this
    Input file: 
    0011   Sally
    ...
    2233   George
    0011   Roy
    1122   Simson
    
  2. or download this
    Output: 
    0011 ---> 2 
    ...
    
    2233 ---> 1
    George.
    
  3. or download this
    my %count;
    my $file = "Input file";
    ...
    foreach my $str (sort keys %count) {
        printf "%-31s %s\n", $str, $count{$str};
    }