Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: $++ Does What, Exactly?

by extremely (Priest)
on Feb 11, 2001 at 00:17 UTC ( [id://57657]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://57657]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2024-03-28 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found