Running Perl scripts in local server

I have recently installed Activeperl 5.28 on windows 10 with Abyss Webserver X1. When I run a simple html form upon hitting the submit button with an action of “http://localhost/xxxx.pl” and valid methods (GET and POST), instead of the expected return in the web page of a table containing the form element names and values, the xxxx.pl file is simply downloaded.
The xxxx.pl file is located in the htdocs directory of the webserver as it should be.

Please advise how I can get the script to run properly instead of downloading.

Have sorted it now.
Had to configure the server to run the ActivePerl interpreter and attach a MIME type to the pl extension

2 Likes

Thanks for posting your solution @AndyBuchan3 - hopefully it will be of help for anyone who runs into this in the future.