Are you sure your form is passing data to your script? I have that same problem and have to configure my script manually, bypassing the form, because I'm not running a server. I might use VBScript to save the form data to a file and have my script read it from the file.
There's some talk about server emulators in Perl web browsers.