more useful options | |
PerlMonks |
Re^2: simple regex questionby JavaFan (Canon) |
on Nov 26, 2010 at 15:08 UTC ( [id://873877]=note: print w/replies, xml ) | Need Help?? |
$|++Why? Is there a reason to insert obscure, needless, lines in your program? Considering that all you're are doing is writing newline terminated strings to STDOUT, which already flushes on newlines by default, there isn't much of a reason to disable buffering. But if, for some reason, you want to disable buffering, why this syntax? What's wrong with a plain $| = 1;? You do realize that not everyone knows what the result of $|++;$|++;$|--;$|--; is?
In Section
Seekers of Perl Wisdom
|
|