Well just to start, I got most of this info from "Perl in a Nutshell". First, you have to make sure that it can support ASP. Then to place it in the HTML document use the <script></script> tags Ex:
<Script language="PerlScript">
$window->document->write("This is PerlScript..");
</script>