Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 chilling in the Monastery: (10)
As of 2014-10-20 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls