in reply to Embedded perl in html

There's something called Server Side includes (SSI)

which can process html pages by the server (apache) then output it

more info take a look at the apache tutorial