develooper Front page | perl.golf | Postings from July 2002

Re: Golf this.

Thread Previous | Thread Next
From:
Rick Klement
Date:
July 16, 2002 07:43
Subject:
Re: Golf this.
Message ID:
3D343159.B91F7F2A@pacbell.net
Andrew.Savige@ir.com wrote:
> > But, is this the shortest algorithm? Using a hash?
> > 29 strokes?
> 
> I make it 25 strokes:
> -p $h{$_}=""}for(sort%h){
> 
> I cannot answer if it is the shortest.
> Only The Alien can answer that.
> 
> /-\

Yep, I make it 25 strokes also.

25 -p $h{$_}=""}for(sort%h){

Mind if I play through?

22 @h{<>}="";print sort%h

-- 
Rick Klement

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About