So $|++ always sets it to true, and $|-- toggles it. Useful to know, but not obvious, and not consistent. But then DWIMmery is not necessarily consistent.$ perl -le '$| = 42; print $|;$|--;print $|' 1 0
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^3: Poor Perl Idioms Explained (except not really)
by QM
in thread Perl Idioms Explained - $|++
by broquaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |