Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

$| and 5.8.2

by smackdab (Pilgrim)
on Dec 13, 2003 at 06:59 UTC ( #314500=perlquestion: print w/ replies, xml ) Need Help??
smackdab has asked for the wisdom of the Perl Monks concerning the following question:

On Win2K and 5.6.1 I never set $| true and
I still got print's to STDIO to show up even without a "\n"
Now with 5.8.2, I had to set $| true.
Just checking to make sure this is the correct "fix"

Comment on $| and 5.8.2
Replies are listed 'Best First'.
Re: $| and 5.8.2
by Zaxo (Archbishop) on Dec 13, 2003 at 07:08 UTC

    How do you open STDIO? Are you speaking of STDOUT?

    Please post code that shows the problem. IO buffers are always flushed when they are closed.

    After Compline,

      DARN, yes, I mean STDOUT. Basically, no output to the console shows up until I print the "\n", which is different that 5.6.1 (at least for me ;-)h

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://314500]
Approved by davido
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-10-09 11:10 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (239 votes), past polls