Skip to content
  • Ben Pfaff's avatar
    pintos: Make sure to print buffered data at end of input. · 2026ecce
    Ben Pfaff authored
    Here, $buf might have some data in it that has not yet been printed, but
    we were discarding it (and trying to read more) without printing it.
    
    (In Perl, "do" ensures that the inner block runs at least once; without
    "do" the condition is evaluated first.)
    2026ecce