Wednesday, January 12, 2011

turning off output buffering


By default, Perl will buffer its output. Being the immediate gratification sort, I hardly ever want that to happen. So I generally start all my scripts with
 $| = 1;
I don't know when output buffering is actaully desirable. I just blindly do this on all my code nowadays.

No comments: