Help for this page

Select Code to Download


  1. or download this
    while (<OUTFILE>) {
        chomp;                              # <== move the chomp here
        my ($key, $value) = split /;/;
        $calhash{$key} = $value;            # not '= $key'
    }
    
  2. or download this
    foreach my $key (sort {$b cmp $a} keys %calhash) {
        my $value = $calhash{$key};
        print TESTFILE "$key;$value\n";
    }