in reply to RE: RE: Re: Order of output when switching filehandles
in thread Order of output when switching filehandles
As I understand it, when $| = 0, then buffering is enabled, and I think how it works depends on whether you are outputting to a terminal. $| = 1 doesn't completely disable buffering but turns on 'command buffering', so each time you do a 'print' or whatever, everything from that command is printed asap.