- or download this
while(<TEST>){
chomp;
...
$list{$i} = [$1,$2];
$i+=1;
}
- or download this
foreach my $c (sort keys %list) {
print "$list{$c}->[1],$list{$c}->[0]$/"
}
- or download this
print map {"$_->[1], $_->[0]$/"} sort {lc($a->[1]) cmp lc($b->[1])} va
+lues %list;