Help for this page

Select Code to Download


  1. or download this
    foreach my $line (@file) {
            chop ($line);
    ...
            my @values = split (/,/, $line);
            $thehash{$values[$field]} .= "$line\n";
    }
    
  2. or download this
    @keys = sort(keys %thehash);
    foreach (@keys) {
            print "$thehash{$_}";
    }