The problem with tables is that they produce a crapload of HTML overhead. My site (http://mbn.dhs.org:81/) is really heavy on the tables already so I wanted to use the <BR> tags because they save a lot of space and bandwidth. The code produced by the script is actually just a list of comments included inside a table as an SSI. It's the comments page: http://mbn.dhs.org:81/comments.shtml

I used thraxil's solution (you've been given credit in the script btw ;) because it's short, elegant, and easily understandable.

The site is definitely a learning experience for me Perl-wise, which is why I've decided against using modules. The more programming I have to do the more I'll learn and the happier I'll be. It's not as though the site has a deadline or anything since I'm writing and running it to cater to a very limited group who don't really _need_ the site anyway.

As for having it do exacly what I need it to do... I must admit to being a bit of a perfectionist. This occasionally gets me in trouble :)


In reply to Re: HTML String Parsing by Ionizor
in thread HTML String Parsing by Ionizor

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.