On Wed, 10 Jul 2013 04:57:44 -0400
shawn wilson <[email protected]> wrote:

> On Jul 10, 2013 2:01 AM, "jitendra B" <[email protected]> wrote:
> >
> > Thank you very much Andy, Nathan, Shawn for your kind help.
> >
> > I am new to the perl. Why auto-flush is needed here (STDERR
> > autoflushes)?
> >
> 
> Probably for consistency with autoflush being enabled for STDOUT,
> it's also on with STDERR. It's an optimization that you generally
> don't care about. I actually thought it was off for STDERR but can
> see the argument either way.

Auto-flush is never needed (unless you're doing tricks with a
terminal). That's why buffered I/O was invented: to speed up I/O.
Auto-flush is a de-optimization. Don't set it.


-- 
Don't stop where the ink does.
        Shawn

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to