thiagu_mvt has asked for the wisdom of the Perl Monks concerning the following question:
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
can somebody explain accurately ?
-Thiagu
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: behaviour of STDOUT and STDERR
by Burak (Chaplain) on May 14, 2009 at 11:06 UTC | |
Re: behaviour of STDOUT and STDERR
by linuxer (Curate) on May 14, 2009 at 11:06 UTC | |
Re: behaviour of STDOUT and STDERR
by marto (Cardinal) on May 14, 2009 at 11:10 UTC | |
Re: behaviour of STDOUT and STDERR
by thiagu_mvt (Sexton) on May 14, 2009 at 11:20 UTC | |
Re: behaviour of STDOUT and STDERR
by tbone1 (Monsignor) on May 15, 2009 at 12:21 UTC |
Back to
Seekers of Perl Wisdom