in reply to Error while compiling LWP code

The error is from the SubmitMain.asp page. Assuming it works fine normally, it is not receiving something it is expecting to receive, or it is receiving something it doesn't expect to receive. We can't tell you what the problem is without knowing more about SubmitMain.asp.

By the way, require 5; is rather useless since it occurs at run-time. use 5; is the compile-time equivalent.

For future reference, place code in <c>...</c> tags when posting on Perlmonks. It will handle escaping, it will handle newlines, it will make your code easy to download, and it will handle wrapping when needed.