in reply to Buffer, buffering my problem

Have you tried to turn off the buffering with local $| = 1; in your code?