Hi all. I'm going nuts... I cannot get this thing to work.. Must be doing something wrong but I can't figure out what...

Here's a code example:
Code:
<HTML>
<HEAD>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<TITLE>formtest</TITLE>
</HEAD>
<BODY>
<FORM NAME=myform>
<INPUT TYPE=text NAME=mytest>
<INPUT TYPE=submit>
</FORM>
<SCRIPT LANGUAGE=PerlScript>
$mytest = $window->document->myform->mytest->{'Value'};

$window->document->write("Debug: $mytest\n");

</SCRIPT>
</BODY>
</HTML>
It has no errors. But I cannot seem to get the value of the textfield...

I'm using ActivePerl 5.8, IE6 on WinXP.