in reply to print inside a loop

You have to make the output unbuffered. You can do that by adding this:
$|=1;
Before the loop.
One Planet, One Internet...
We Are All Connected...