in reply to Let users wait for the results

you could disable buffering by using this at the top of the program :
$| = 1;
This will show the data as it is outputted by the program, rather than being buffered by Perl...