[JaxPM] autoflush
Greg Sabino Mullane
greg at turnstep.com
Thu Jan 3 06:50:25 CST 2002
On the jacksonville-pm-list; Jax.PM'er "Greg Sabino Mullane" <greg at turnstep.com> wrote -
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> 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. :)
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!
Greg Sabino Mullane
greg at turnstep.com
PGP Key: 0x14964AC8 200201030749
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html
iQA/AwUBPDRThrybkGcUlkrIEQJiKgCfZ9Wyok1GArVJq+MoH0ErVJeyseEAoIG0
JjlLy+nNKoV3I+MhRMquZI+Y
=ZZaI
-----END PGP SIGNATURE-----
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