Best way to execute perl script from webpage?
问题 I need to execute a perl script in the root directory of my server from a webpage (on same server). 4 parameters need to be passed to this script from input boxes on the page for it to work. What would be the best way to do this? Please advise. If possible please provide an example. Many thanks 回答1: Servers like Apache have a /cgi-bin/ handler. You would make a request to http://site.tld/cgi-bin/script.pl?param=val¶m2=val or something similar. This script.pl actually resides elsewhere.