Turn on autoflush: $| = 1;
In reply to Re: Printing inside a loop by GrandFather in thread Printing inside a loop by no21