On Fri, Apr 20, 2007 at 10:48:33AM +0100, Benjamin Smith wrote: [...] > perl -alne '$h{$_}++for at F}{print"$_:$h{$_}"for sort keys%h' You could golf another character if you're prepared to swap that print for a warn.