in reply to TIMTOWTDI/golf - counting backwards
$,=$";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
=cut
--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 |