Look for the word "magic" in
Perl Idioms Explained - $|++ and look at
diotalevi's reply to it as well. In short, ++$| is always true, and --$| always flips the value of $|. My use of it had nothing to do with flushing; only with the magically boolean nature of the variable.
Caution: Contents may have been coded under pressure.