in reply to how to generate html page

There are a bunch of template modules in CPAN that are often used to machine generate HTML. For a quick start I strongly recommend HTML::Template. For kitchen sink templating take a look at Template::Toolkit.

True laziness is hard work