Gotta know a few things ahead of time:  what kind of server (Windows or
UNIX) and the location of the perl interpreter.

Making some gross assumptions, try:

#!/usr/local/bin/perl -w

print "Content-type: text/html\n\n";
print "Hello World!<BR>\n";

---
Next, see if the server has CGI installed:

#!/usr/local/bin/perl -w

use CGI;
use strict;

my $htmlPage = new CGI;

print $htmlPage->header;
print "Hello World!<BR>\n";

Place the script in a cgi-bin directory (upload using ASCII format), give it
the right permissions (rwxr-x-r-x), make sure it ends in .pl (or .cgi) and
then in your Web browser, go to that URL.  These are also making more
assumptions, but give it a shot and let us know what does or doesn't work if
you have further complications.

Jason

----- Original Message -----
From: "john.twycross" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 10:25 AM
Subject: test script


> Can anyone tell me what is the most basic script that I can load onto a
> server to test that it is working?
>
> Thanks
> John Twycross

Reply via email to