Friday Perl Challenge

Peter Corlett abuse at cabal.org.uk
Fri Apr 20 10:58:35 BST 2007


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.



More information about the london.pm mailing list