Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: one-liner pi

by MrNobo1024 (Hermit)
on Feb 15, 2001 at 03:24 UTC ( [id://58493]=note: print w/replies, xml ) Need Help??


in reply to one-liner pi

You should do a $|++ before the program starts, or it won't display anything until you exit :(

Replies are listed 'Best First'.
Re: Re: one-liner pi
by zeno (Friar) on Feb 15, 2001 at 14:34 UTC
    Hi MrNobo1024,

    It didn't happen that way for me... I thought that print did line buffering if it was printing to the terminal, and block buffering when printing to a filehandle.

    However... it nicely obfuscates the code a little more if I do put it in! So I did. Thanks for the tip! ;)
    -zeno

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://58493]
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: (3)
As of 2024-04-26 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found