I don't see (though wiser heads may) any show-stoppers in your perl, but the html has some problems (though the whole issue of how a table is rendered tends to be browser-dependant).

Do use:
    <table border="2" width="100%" ....>
... eg, quote all attribute-values and no spaces around the equal-sign, may help

Line 8 has closures of <tr> and <td> reversed:
    </TR></TD>
which won't do you any favors either.

and <br><br> won't work as you expect, either...<br>, \n, \t, etc ALL are -- in html's mind -- whitespace, and browsers are supposed to (w3c) render ONLY one space, horizontal or vertical, when they read a (non-char_entity) whitespace. One workaround: Use char_entity whitespace &nbsp; to separate 'em.

Misc non-showstopper notes: use lc for all your html tags, attributes, etc. Not required in html 4.01, but.... will make shifting to XML, etc. easier. And if you're not fully comfortable with writing compliant html, maybe write the .html separately, submit it to the w3c validator, and when it's clear, use it as a here_doc.

Update: Took so long to clean this up that it's virtually redundant. ++, Monks above!

In reply to Re: HTML coded for in PERL by ww
in thread HTML coded for in PERL by MonkPaul

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.