in reply to Re^3: CGI program
in thread CGI program

There:

HTTP server looks at the request and if it involves external program, then invokes external perl program which is in some dir on the web server. Passes request parameters to this program