Force flushes of STDOUT, outputing long lines seems to break Perls internal buffering messing up the output.