Use this perl module to create an html document. It will create an empty html when instantiated and you may use methods to append more html to it. You cannot insert elements, only append!
The html document ist created as a string, containing an arbitrary number of html elements that you append to the string. When you request the html, the string is enclosed in html head and body sections and returned.
This does NOT cover ANY POSSIBLE html tags and is not a replacement for the usage of native...