Using perl output autoflush

Some explanations here:
http://stackoverflow.com/questions/17378189/why-is-the-stdout-line-printed-after-the-stderr-line/