Skip to content

Instantly share code, notes, and snippets.

@masak
Created April 18, 2009 11:42
Show Gist options
  • Save masak/97567 to your computer and use it in GitHub Desktop.
Save masak/97567 to your computer and use it in GitHub Desktop.
$ perl6 -e '
my %h;
for lines("lib/November.pm") -> $line {
for $line.comb -> $word {
++%h{$word}
}
}
say .value, "\t", .key for %h.sort({ $^b.value <=> $^a.value })[^10]'
60 {
48 =
47 }
40 my
33 =>
26 #
18 );
17 if
16 method
11 use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment