Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: print problem

by hossman (Prior)
on Dec 21, 2001 at 02:32 UTC ( [id://133704]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: print problem
in thread print problem

The reason you need to set $| is explained in "perldoc perlvar"...
    $|    If set to nonzero, forces a flush right away and
          after every write or print on the currently
          selected output channel.  Default is 0
          ...
          STDOUT will typically be line buffered if output
          is to the terminal and block buffered otherwise.
          ...
So in your orriginal program, the buffer was just building up because it never say a line termination. (and when you switched to "\n" it did).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://133704]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.