in reply to behaviour of STDOUT and STDERR
See suffering from buffering:
$| = 1;
print STDOUT "Output with Newline\n\n between";
print STDERR "FirstLine\nSecondLine\nThirdLine";
Does what you expect
Hope this helps
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (501 votes). Check out past polls.