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
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>