in reply to sleep on windows w activestate perl

While I agree that output buffering is the problem, setting autoflush is the less-preferred solution in this case.

I would recommend terminating each line with a "\n", as in

print "Hello World\n";
The newline will cause the buffer to flush without any fussing with autoflush. This is why you see most perl scripts terminate "print" lines with "\n" (It also makes the output lines separate, which , in most cases , is desirable.

Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.