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

Re: Golf this.

Thread Previous | Thread Next
From:
Andrew.Savige
Date:
July 16, 2002 19:42
Subject:
Re: Golf this.
Message ID:
694BB7191495D51183A9005004C0B05452DE81@ir-exchange-srv.ir.com.au
En op 17 juli 2002 sprak Kristen Thelen's hubby:
> I've come up with a couple other 20s:
>
> 20 print\@h{<>}&&sort%h
> 20 print!\@h{<>},sort%h  (not sure why this works, so maybe it doesn't:)

Hurrah! I'm going backwards!

27 print sort%{{map{$_,""}<>}}

But at least I got rid of that annoying %h variable.

/-\

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