in reply to TIMTOWTDI/golf - counting backwards

Don't laugh--it's my first golf. 55 chars, appears to follow the rules.

$,=$";print sort{$b<=>$a}(ord(b)-ord a)..(ord(k)-ord a)

UPDATE: This occurred to me about five minutes after that one. 45 chars.

$,=$";print sort{$b<=>$a}map{ord()-ord a}b..k

--Brent Dax
There is no sig.

Replies are listed 'Best First'.
Re: Re: TIMTOWTDI/golf - counting backwards
by blakem (Monsignor) on Jan 29, 2002 at 03:57 UTC
    A quick golf tip....
    Can be golfed to: