in reply to TIMTOWTDI/golf - counting backwards


45 chars. It uses revers but not reverse.
#23456789_123456789_123456789_123456789_12345 perl -le'$=/=split//,revers;print$=--while$='

--
John.

Replies are listed 'Best First'.
Re: Re: TIMTOWTDI/golf - counting backwards
by Juerd (Abbot) on Jan 28, 2002 at 21:32 UTC
    Nice one, jmcnamara. It took a while before I figured out how it works, mostly because I didn't know what split does in scalar context, but the /= might confuse quite a few people too :)

    2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$