in reply to Using Perl to make Html file

First, read the docs for CGI. Then, read the docs for HTML::Template. Try the examples in both. After that, come ask the specific questions you have here.

Those are two of the standard modules most of us use to deal with HTML from within Perl. There are many others, but I find those to be the best starting point.

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.