Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
RE: RE: Word Counterby chromatic (Archbishop) |
on May 09, 2000 at 20:18 UTC ( [id://10772]=note: print w/replies, xml ) | Need Help?? |
How about a round of golf, merlyn?
perl -ne '$a{$_}++ for split; END { print join "\n", (sort { $a{$b} <=> $a{$a} } keys %a)[0 .. 9]; } <filename>
In Section
Craft
|
|