Keep It Simple, Stupid | |
PerlMonks |
Re^2: Golf: Count unique wordsby Anonymous Monk |
on Dec 07, 2004 at 13:10 UTC ( [id://412897]=note: print w/replies, xml ) | Need Help?? |
#!/usr/bin/perl -0nla
$w{$_}++for@F;print"$_ ($w{$_})
"for keys%w;print~~@F
small correction :)
In Section
Seekers of Perl Wisdom
|
|