Read the very good docs that ship along with Active Perl :-)
look for it under:
C:/Perl/eg/IEExamples/index.htm
Just adjust the path to perl to find the docs, but you should have an entry in :
Start->Programs->ActiveState AtivePerl 5.6->Dokumentation
Scroll down the left frame a bit and look for "Windows Specific" and therein for "PerlScript"
Have a nice day
All decision is left to your taste
Update
# sample right out of the above named documentation
<HTML>
<HEAD>
<TITLE>PerlScript Hello World!</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<h2>PerlScript Hello world!</h2>
<SCRIPT LANGUAGE="PerlScript">
$window->document->write('Hello world!');
</SCRIPT>
</BODY>
</HTML>