in reply to how to put html table in perl

Well, in general, you may not want to embedd html in your perl code. I'd use Template Toolkit to generate the html.