...you have no way of knowing how many bytes were printed...

I gave the minimum lower bound.

Second, the number of bytes that didn't print is even more telling.

I repeat your first assertion. How do you know the number of bytes that didn't print?

Thirdly, why do you assume he's printing to a tty?

In the absence of any other information, what else is there to assume?

To count the lines exactly, he probably redirected stdout. That disables line buffering.

The OP had to notice the problem before deciding to count the lines exactly. There's no way of knowing without more information. You might as well assume $|++ somewhere in the program.

Finally, that a line was only partially printed is a very good indicator of a buffering problem.

...or unexpected data, such as \r or \b characters.


In reply to Re^4: SLOW DOWN, you move too fast..... by chromatic
in thread SLOW DOWN, you move too fast..... by perlNinny

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.