Having trouble getting CGI Perl app to run under Domino 11

I'm doing a proof of concept and want to run a perl cgi application under domino. This is on Windows. I have perl installed. It is in the path. The perl script is super simple and runs fine standalone. It is in the data\domino\cg-bin directory.

When you access the script from a browser you just get the generic error

Http Status Code: 500

Reason: Unable to execute request script

In Domlog I see the message:

500 INTERNAL ERROR (The server could not fulfill the request because of an unexpected condition)

There is nothing on the Domino console.

Not sure what to do next ? Any suggestions?

Thanks

Is perl.exe available for Domino via the PATH or via PERLBIN environment variable?

(https://help.hcl-software.com/dom_designer/11.0.0/appdev/builds/H_ABOUT_PERL_SCRIPTS_4050.html)

Hi, thanks for the suggestion. Perl is in the path and can be run from anywhere.

Cheers