You are Suffering from Buffering. You need to make your output filehandle hot, by disabling buffering. You do this by adding local $| = 1; before you print.
$| is documented in perlvar.
Dave
In reply to Re: Printing without a newline?
by davido
in thread Printing without a newline?
by system("clear");
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |