in reply to HTML coded for in PERL

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!