Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Flushing the print buffers.

by ikegami (Pope)
on Feb 22, 2008 at 00:07 UTC ( #669429=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Flushing the print buffers.
in thread Flushing the print buffers.

->autoflush(1) will flush after every print/syswrite/etc.
->autoflush(0) will flush on demand (->flush), when the buffer is full (all handles) and when "\n" is encountered (when -t HANDLE only).

If you want something else, you'll need a tied handle or your own print function.


Comment on Re^3: Flushing the print buffers.
Select or Download Code
Re^4: Flushing the print buffers.
by lidden (Deacon) on Feb 22, 2008 at 00:37 UTC
    What I want is a handle that is fully buffered when -t HANDLE is true, not just line buffered.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-12-21 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (104 votes), past polls