Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: TIMTOWTDI/golf - counting backwards

by jmcnamara (Monsignor)
on Jan 28, 2002 at 20:49 UTC ( [id://142109]=note: print w/replies, xml ) Need Help??


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:~$

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://142109]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found