PDA

View Full Version : Turning off buffering


Whiteknight
04-22-2005, 03:54 PM
I'm having problems with PERL buffering the console output, and I want to permanently disable the feature.

I know that the following code will disable the buffers:$| = 0;, but i have alot of scripts to go through, and I dont want to have to add more lines of code to all of them. Also, i have some perl scripts that are in byte-code format, and adding new stuff to that would be a pain as well.

basically, i want to know if there are any arguments (none that i can find) that will turn off the buffering, or is there anyway to tap into the perl API to force the buffering to turn off.