Sudarshan Raghavan wrote: > > Both STDERR and STDOUT are line buffered, when a "\n" is seen > the contents of the buffer is flushed. Turning on autoflush is superfluous > in this case. Try this instead :-) > > #!/usr/local/bin/perl > use strict; > use warnings; > > select (STDERR); > $| = 1; > print STDOUT "STDOUT"; > print STDERR "STDERR";
As I pointed out, precisely how the streams are handled is platform-dependent. On my Win2KPro system this print STDERR "STDERR\n"; print STDOUT "STDOUT\n"; outputs this STDOUT STDERR so they are clearly not line-buffered. Whether it is generally true that they are on *nix systems I cannot say. Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]