in reply to running exe file from cgi
If you feel the replies were too vague- It should be pointed out that people here usually present more precise questions.
You could start a script with what you want it to do, and where you have no idea, maybe just put in a comment. Then post that, then you would get more interesting replies.
What was mentioned before- is that scripting a cgi is the same as any other script. Cgi is more of a 'how' than a 'what', you can write cgi in any language. Perl is just one of the languages.
Thus, your question is partly about how to run an external executable program from your script. I suppose this perl cgi script would take input parameters, check (validate) the values, and pass them on (call the external exe(cutable))- then the result (fail, success, output) would be presented back.