in reply to Why do I need a space here?

Try adding $|=1; to turn off buffering, just a guess -- otherwise I have to say what the others do " can not reproduce your problem."