in reply to Can I code perl inside HTML?
If you're using IIS and keeping the .html extension isn't a requirement, you can use PerlScript. It installs with ActiveState Perl, and has a fair amount of on-line (html) documentation. I've used it on several intranet sites, and it works quite well, particularly if you need to tie into COM/ActiveX.