In addition to the advice you've already been given:
"But 500 Internal server error gets thrown."
What does the IIS error log say?
"This time no error but the script gets download (not executed)."
Sounds like you have not configured IIS to run files with a .pl extension server side. Consult the IIS documentation for more information.
Martin
In reply to Re: 500 internal Server Error on executing CGI script
by marto
in thread 500 internal Server Error on executing CGI script
by anbutechie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |