Categories

How do I test if Perl is working on my server?

Create a file called test.pl

Add the following text:

#!/usr/local/bin/perl
 print "Content-type: text/html\n\n";
 print "test\n";

Upload it to your cgi-bin directory by ftp.

(If you do not have a cgi-bin directory create one on the server.)

Open your web browser and run:

yourdomain.com/cgi-bin/test.pl

The word test will be displayed.

Natural Holidays Advert