Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: writing to a file using print

by dorko (Parson)
on Feb 13, 2007 at 04:40 UTC ( #599638=note: print w/ replies, xml ) Need Help??


in reply to writing to a file using print

Brad,

Looks like you're "suffering from buffering".

Try turning buffering off by adding the following line before your print statement:

$|++;

Cheers,

Brent

-- Yeah, I'm a Delt.


Comment on Re: writing to a file using print
Download Code
Re^2: writing to a file using print
by geekphilosopher (Friar) on Feb 13, 2007 at 06:50 UTC
      This whole discussion gives me nasty flashbacks to a time when I couldn't have been more wrong. At that point I switched from $| = 1; to $|++;.

      I've mostly gotten over it... :)

      Cheers,

      Brent

      -- Yeah, I'm a Delt.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2015-07-02 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls