Considering that you beginning it's probably well worth having a look at Server SIde includes (SSI). SSI's allow HTML files to be written and then have perl scripts embedded in them. Have a look at this quick SSI Tutorial and see what you think.
Comment on Re: How do you embed a Perl script into an HTML document?