in reply to Perl only prints complete lines?

Thanks for all the replies. I used 'local $| = 1;', and it worked perfectly. Thanks.