Journal: more commands! on 2010.04.06 2:26
In reply to fREW Schmidt's and Ovid's top 10 history commands, here is my list:
In reply to fREW Schmidt's and Ovid's top 10 history commands, here is my list:
my %words;
$*IN.lines.split(/\s+/).map: { %words{$_}++ };
for %words.pairs.sort: { $^b.value <=> $^a.value } -> $pair {
say $pair
}
see also: this node at perlmonks