Is there a way to preserve linebreaks in nodes without typing <br>?
To what purpose?

You've used <code> properly in your OP and I don't see anything in this thread that can't be attributed to individual style where <br> would be needed unless it's the parent of this post, where (personal style, again), I might have broken up your monolithic text into paragraphs, using <p>... </p> pairs.

For more general advice on formatting your nodes, check Writeup Formatting Tips and because it's comprehensive, follow, near the bottom, the link to Perl Monks Approved HTML tags.

And lest we forget, your browser's "View Source" may add some answers, if you see some kind of fancy formatting not readily attributable to breaks, paragraphs, or (not previously mentioned) lists whether ordered or unordered.

Just BTW, there are no <br>s in the source of this entry.

In reply to Re^3: CGI::Session - Aside in answer to formatting question by ww
in thread CGI::Session not 'sticking' on one computer by skelooth

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.