Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl Idioms Explained - $|++

by chromatic (Archbishop)
on Aug 01, 2003 at 18:30 UTC ( #280089=note: print w/ replies, xml ) Need Help??


in reply to Perl Idioms Explained - $|++

The $|++ idiom will turn buffering off for when we want to see our output, and we want to see it now!

... thus giving the illusion of better performance at the expense of better performance.

Sometimes that's necessary. I see a lot of programs that disable buffering out of habit where it's unnecessary. Buffering's done for a reason — if you really don't need it, that's one thing, but I think it's silly to disable good things.


Comment on Re: Perl Idioms Explained - $|++

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-12-22 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (111 votes), past polls