Jeff Abrahamson on 23 Jan 2004 23:50:53 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

$OUTPUT_AUTOFLUSH


I thought $OUTPUT_AUTOFLUSH was a synonym for $|, but apparently not.
(See below.)  What am I missing?

Note that I hit ^D after the print bye line.

-J


  jeff@krypton:canset_20040123-1838 $ perl -w
  use strict; 
  $OUTPUT_AUTOFLUSH=1;
  print "hi";
  sleep 1;
  print " bye\n";
  Global symbol "$OUTPUT_AUTOFLUSH" requires explicit package name at - line 2.
  Execution of - aborted due to compilation errors.
  jeff@krypton:canset_20040123-1838 $ perl -w
  use strict; 
  $|=1;
  print "hi";
  sleep 1;
  print " bye\n";
  hi bye
  jeff@krypton:canset_20040123-1838 $ 

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**