I m using IIS, I Created CGI script and enabled web sharing (Application Permission - Execute (include scripts)).
I opened inetmgr and right click on the script and choosen browse. IE get opened with URL (http://localhost/script.cgi). But 500 Internal server error gets thrown.
I changed the file extention as .pl and opened the url http://localhost/script.pl - This time no error but the script gets download (not executed).