I use "$| = 1;" myself. It works well enough. There is a thing with the buffer and memory and all that fun stuff.

It doesn't always function as quickly or as smoothly as I would like it to, but it is much better than not using it.

-- Craig

Lyle Kopnicky wrote:
Hi folks,

Autoflush doesn't seem to be working. I have written a server program which outputs logging information to the console. When I redirect it to a file, the file stays size zero until a lot of stuff is in it. Typically I stop the program by killing it, and that doesn't cause the buffer to flush.

I've set $| = 1 at the start of the program, but that doesn't help. I'm trying to avoid changing all the prints to print to a filehandle, but I may have to do that. Any ideas?

Thanks,
Lyle Kopnicky
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0510-1, 03/11/2005
Tested on: 3/11/2005 3:38:36 PM
avast! - copyright (c) 1988-2004 ALWIL Software.
http://www.avast.com



_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to