Word frequency count FIXED by ivanw

s/[^a-zA-Z ]//g,(map{$_&&$a{lc$_}++}split/\s+/,$_)for<>;print "$a{$_} $_\n"for sort keys%a

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page