in reply to creating report tables

At first glance I don't see a problem with the Perl-code, but I think by using CSS (style sheets) consistently in your HTML, the whole lot would become much less cluttered and easier to maintain.

Another solution would be to have your Perl-script output XML, which you then transform through XSLT into HTML (or whatever the final form needs to be). By doing so, your script is rid of all formatting code.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law