Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 cooling their heels in the Monastery: (9)
As of 2014-12-26 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (171 votes), past polls