Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: (Golf) Friday Golf: Print Formatted Sequence of Digits

by fletcher_the_dog (Friar)
on Aug 15, 2003 at 23:24 UTC ( [id://284276]=note: print w/replies, xml ) Need Help??


in reply to (Golf) Friday Golf: Print Formatted Sequence of Digits

Total Cheater method:
First: Create module called "i.pm" that looks like this:
print join(" ", map { sprintf("%03u", $_) } (2..20)), "\n";exit 0
Then I can get it to 7 characters:
perl -Mi

Replies are listed 'Best First'.
Re: Re: (Golf) Friday Golf: Print Formatted Sequence of Digits
by demerphq (Chancellor) on Aug 17, 2003 at 10:04 UTC

    Er, this waits on STDIN for a program to be piped in.


    ---
    demerphq

    <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...
      That is why it says "exit 0" at the end! :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found