[meta-sig] DATABASE

Markus Fleck fleck@informatik.uni-bonn.de
Sat, 11 Jul 1998 01:11:53 +0200

Fredrik Lundh wrote:
> Hey, here I go away for a three-day vacation, and when I come back,
> the Python universe is starting to look like comp.lang.perl.misc.
> Didn't take long to figure out why, though:
> [...]
>    -- Python/XML hacker Lars Marius Garshol published the following
>       little masterpiece:
>       http://www.stud.ifi.uio.no/~larsga/download/artikler/perl.html

Heh. This is indeed a very nice piece of pro-Python advocacy.
It should be noted, though, that setting $| is not the only way
to achieve unbuffered output with Perl. Another way (and the
more general way) would be


And with Perl file handles not even needing "$" prefixes,
the above in fact looks quite readable... -:^))

When including

  use English;

it is also possible to refer to $| as $OUTPUT_AUTOFLUSH.

Another nice quote from the "perlvar" manual page:

  "$| ... (Mnemonic: when you want your pipes to be piping hot.)"


  "But the possibility of abuse may be a good reason for leaving
  capabilities out of other computer languages, it's not a good
  reason for leaving capabilities out of Perl."
              -- Larry Wall in <199709251614.JAA15718@wall.org>

   Markus B Fleck - University of Bonn - CS Department IV - fleck@isoc.de
         UNIX Administrator - comp.lang.python.announce Moderator
    PINN Open Source Internet Groupware Project - http://cscw.net/pinn/