what if someday the default for $| is instead 1?That's not the problem:
The problem is that it might confuse someone who doesn't know about this particular piece of DWIMmery.$ perl -le '$| = 1; $|++; print $|++' 1
Update: removed unfunny joke
In reply to Re^2: Poor Perl Idioms Explained (except not really)
by robin
in thread Perl Idioms Explained - $|++
by broquaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |