DelphiFAQ Home Search:

How to test perl scripts offline

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

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

Answer:

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.

Comments:

2012-11-11, 19:02:28
bbgb from United States  
2014-12-26, 11:20:36
anonymous from Italy  
A can feel your pain Apache, the Definitive Guide is not worth bying if you look at implementing acaphe2 modules and don't know how it works with 1.3. The author has failed to explain the big picture and just copy'and pasted some random code samples from existing modules. 3rd Edition, yeah!!
2014-12-27, 07:48:55
anonymous from Venezuela  
When I first saw this title Wedding City Wedding Photos, design and more on<a href=' http://jisyoyzyj.com'> glogoe</a> I just whent and bookmark it.Can I just say what a reduction to find someone who truly knows what theyre talking about on the internet. You definitely know how to deliver a problem to gentle and make it important. Extra individuals need to learn this and perceive this aspect of the story. I cant consider youre not more in style since you definitely have the gift.
2015-01-17, 22:20:24
anonymous from United States  
Are these jerseys game used

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: