Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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.

Replies are listed 'Best First'.
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?
[Lady_Aleena]: 1nickt, why does it matter in this case?
[1nickt]: Hm, perhaps this? "Operators which expect an integer force the argument into the integer format."
[1nickt]: Can this be? So print
[1nickt]: ... "expects an integer" ?
[Lady_Aleena]: Maybe...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2017-05-24 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?