Inserting a long line as inliner code is rather bad style, don't you think so?
Yes, but the code doesn't have to be long to end up broken, it just has to be embeded in the text so that it doesn't fit entirely in the current line.

If the author doesn't want automatic line breaks he should insert one by himself.
That's a good point and it would work well for oneliners. But there might be cases where you want your code to be inlined, and it ends up being broken although it's very short. Like my @array;,next unless /regex/ or perl -ne. You could use non breakable spaces to prevent breaking, but that's very cumbersome.

Edit: corrected typos


In reply to Re^2: No line breaks in inline code by Eily
in thread No line breaks in inline code by Eily

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.