What the heck does $|++; do?
It makes your output pipe piping hot. See perldoc perlvar.

This is useful for interactive programs that prompt on STDOUT, and read from STDIN. Usually you want the user's cursor to stay on the same line as the prompt. But, the default action of print is to wait until it has a complete line (with \n) before writing it out. Setting $| to 1 changes this behaviour.

I'm Not Just Another Perl Hacker

In reply to Re: What the heck does $|++; do? by rinceWind
in thread What the heck does $|++; do? by Anonymous Monk

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":