Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I test my perl script offline, meaning without uploading them to the web server?

0
Posted

How can I test my perl script offline, meaning without uploading them to the web server?

0

You may be able to run some simple scripts right from the DOS command line. This will work fine as long as the scripts are not supposed to generate HTML (output would look funny) or process CGI data (there won’t be any if you simply invoke the script from the DOS prompt (or whatever operating system you use). If your perl script produces a web page and/ or processes CGI data, then you’ll have to install a web server e.g. Apache (www.apache.org). You’ll have to copy your script to Apache’s CGI-BIN directory (see file httpd.conf to find out where that is) and if under Linux or other Unix, set the executable flag with chmod. Under Linux and Apache 2, the CGI-BIN directory usually is /var/www/cgi-bin/. If your perl script also relies on a database or other environment on the production web site, then you’ll better duplicate all of that. Don’t mix development with production.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123