in reply to mason and embperl

You should take a look at the What is the best tool to embed perl in HTML? node at the Q&A section for previous discussion on the matter.