[JaxPM] autoflush

Steve Lane sml at zfx.com
Thu Jan 3 08:20:47 CST 2002


On the jacksonville-pm-list; Jax.PM'er Steve Lane <sml at zfx.com> wrote -

Greg Sabino Mullane wrote:
> > Wait ...  Isn't $|++ set to *prevent* buffering when using
> > CGI file handles?
> 
> $| improves the buffering by switching from the default buffering
> (usually ~ 2K depending on the OS) to "command" buffering,
> which I assume means that fflush() is called every time
> a command (e.g. print) is called by perl. While still not
> totally unbuffered, this is way better than the default. :)

how so?  are there not any circumstances when buffering
is preferable to not buffering?

> I wouldn't be surprised if Perl6 managed to put a command
> in (or even a default) so that all filehandles are automatically
> "unbuffered." I can't recall if it does, but I do remember
> that you can open a file in P6 with "autochomp" mode - yay!

what does autochomp have to do with buffering?
--
Steve Lane <sml at zfx.com>

Jax.PM Moderator's Note:
This message was posted to the Jacksonville Perl Monger's Group listserv.
The group manager can be reached at -- owner-jacksonville-pm-list at pm.org
to whom send all praises, complaints, or comments...




More information about the Jacksonville-pm mailing list