73 (70 + 3 for the switches). The \b's are pretty much unnecessary and using $& means you don't need parens.
#!/usr/bin/perl -nl END{print map("$_ ($w{$_})\n",sort keys%w),$t}s/\w+/$w{$&}++;$t++/eg;
In reply to Re^2: Golf: Count unique words
by Fletch
in thread Golf: Count unique words
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |