in reply to how to generate html page

You've told us what you're doing but you haven't asked a question about it.

You should show your script or, at least, the part that is giving you problems.

I'd recommend taking a look at: How do I post a question effectively?

Not related to Perl, but you might want to also take a look at HTML documentation. You'll find a variety of HTML links on the W3C Site Map.

-- Ken