http://qs321.pair.com?node_id=529487


in reply to Printing inside a loop

Check out perlvar and the variable $|. Simply put setting $| = 1; should flush to STDOUT immediately instead of at the end of the program.