in reply to HTML Table Question

"Whats the easiest way to achieve this ..."

If the escaped HTML is your problem, then HTML::Entities is your answer:
decode_entities($string) This routine replaces HTML entities found in the $string with the corresponding ISO-8859/1 (or with perl-5.7 or better Unicode) character. Unrecognized entities are left alone.
If (pre|ap)pending headers and footers is the problem, then we really need more info.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)