in reply to Re: $++ Does What, Exactly?
in thread $|++ Does What, Exactly? (was: $++ Does What, Exactly?)

Actually, I think perl in general has begun sniffing the STDOUT to see if it is a terminal and turning buffering off if it is. My example printed to the screen with STDOUT and STRERR rather than a file was dissappointingly doing the right thing. =)

--
$you = new YOU;
honk() if $you->love(perl)

Replies are listed 'Best First'.
Re (tilly) 3: $++ Does What, Exactly?
by tilly (Archbishop) on Feb 11, 2001 at 00:28 UTC
    On Linux at least the default buffering for things heading to the screen is buffered on the return. Which is why my interactive example involved sending one character at a time. :-)

    UPDATE
    It also flushes upon reading from STDIN. These two features make interactive scripts much more reasonable.