when executed it printsprint STDOUT "Output with Newline\n\n between"; print STDERR "FirstLine\nSecondLine\nThirdLine";
Why is contents of stdout printed after stderr ? because each stdout and stderr are launched in different threads and stderr finished soon ?[host1]$ perl out_err.pl Output with Newline FirstLine SecondLine ThirdLine between
In reply to behaviour of STDOUT and STDERR by thiagu_mvt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |