Why doesn't ::Stream set it after it has finished printing stuff to STDOUT automagically?

Its none of its business ?:)

I really don't know, this Bug #37038 for CGI-Application-Plugin-Stream: PATCH: improved auto-buffering and error handling. indicated it should have been done in 2008, go figure

Shall I do ... in my runmode?

You may :) You may also write that as

{ local $|=1; ... return; }

Or does it mean I should switch the buffer mode in general for the whole app by stating $| = 1; in the setup() stage of CGI::App??

It may. You could even

{ local $|=1; my $app = MyCGIAppSubclass->new; $app->run; }

In reply to Re: What does "increment $| or set it to 1" mean for my CGI app? by Anonymous Monk
in thread What does "increment $| or set it to 1" mean for my CGI app? by isync

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.