This is one case where disabling buffering on STDOUT can help you.
$| = 1;In reply to Re: displaying output at the correct moment
by chromatic
in thread displaying output at the correct moment
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |