Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: TIMTOWTDI/golf - counting backwards

by gmax (Abbot)
on Jan 28, 2002 at 20:20 UTC ( [id://142090]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #        1         2         3
    #23456789012345678901234567890123456
    $a=ord(L)-ord(A);print$a.$/while$a-- # wrong one
    $a++for(a..j);print$a--.$/for(a..j)
    
  2. or download this
    perl -e '$b++;$a=hex--$b.xA;print$a--.$/for(a..j)'
    perl -e '$a=++$b.$[;print$a--.$/for(a..j)'
    
  3. or download this
    #        1         2         3
    #23456789012345678901234567890
    $a=hex(A);print$a--.$/for+a..j
    $a=hex+A;print$a--.$/for+a..j  # (29) with a warning
    
  4. or download this
     _  _ _  _  
    (_|| | |(_|><
     _|
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found