Hi experts When I am using STDERR and STDOUT for mixed output, I found a problem. Output of STDERR and STDOUT can not be mixed. Here is the snippet.
##################################### print STDOUT "This is STDOUT\n"; print STDERR "This is STDERR\n"; print STDOUT "This is STDOUT\n"; ##################################### I thought the result shoud be -------------------------------------- This is STDOUT This is STDERR This is STDOUT -------------------------------------- but the actual result is -------------------------------------- This is STDERR This is STDOUT This is STDOUT -------------------------------------- Then I set $| = 1; the result became -------------------------------------- This is STDERR This is STDOUT This is STDOUT -------------------------------------- I also tried set autoflush STDOUT->autoflush(1); STDERR->autoflush(1); But I can not get the result as I expected. Anyone know what's up? Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/