in reply to Re: displaying output at the correct moment
in thread displaying output at the correct moment

Im not familiar with setting
$| = undef
My understanding was that there are only 2 buffering behaviours, and they are based on the truth value of $|
So, $| = undef would evaluate to false, the same as the default value of $| = 0
If $| is true, the output buffer is flushed after each output operation (print, printf, write). If $| is false, block buffereing occurs.
What am i missing?

Update:fixed a minor typo - i had $\ in place of $| in one place.

Replies are listed 'Best First'.
Re: Re: Re: displaying output at the correct moment
by hardburn (Abbot) on Jun 23, 2003 at 17:25 UTC

    Oops, you're right. I should have said $| = 1;.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated