http://www.perlmonks.org?node_id=764055

thiagu_mvt has asked for the wisdom of the Perl Monks concerning the following question:

print STDOUT "Output with Newline\n\n between"; print STDERR "FirstLine\nSecondLine\nThirdLine";
when executed it prints
[host1]$ perl out_err.pl Output with Newline FirstLine SecondLine ThirdLine between
Why is contents of stdout printed after stderr ? because each stdout and stderr are launched in different threads and stderr finished soon ?
can somebody explain accurately ?
-Thiagu