Sh?aving seven strokes:
#!/usr/bin/perl -lp ++$t,++$w{$_}for/\w+/g}for(map("$_ ($w{$_})",sort keys%w),$t){
In reply to Re^3: Golf: Count unique words
by eyepopslikeamosquito
in thread Golf: Count unique words
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |