http://stackoverflow.com/questions/4538767/how-flush-file-in-perl
http://blog.famzah.net/2010/04/08/auto-flush-both-stdout-and-stderr-in-perl/

so they are both wrong?