You need some information from the host:
Path to the Perl executable (e.g. /usr/bin/perl is typical on a Linux
machine.)
Location of your cgi-bin (this may not be within your web site)
The extension to be used for the script, usually .pl but some hosts insist
on .cgi
the "hello World" script would look like this:
#!/usr/bin/perl -w
# above line must be first line and tells server where to find Perl.
use CGI;
my $form = new CGI;
#makes life easy for developer, but CGI library can be a resource hog.
#print HTTP headers
print $form->header( -type=>"text/html; charset=ISO-8859-1");
#print HTML page
print qq~
<html>
<head>
<title>Hello World</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
~;
# finished
exit;
Create this in notepad, save as hello.pl
Assuming a Unix server, FTP it (do NOT publish with FrontPage) to the
cgi-bin on your server.
When uploaded, in the FTP client CHMOD the file to 755. This sets
permissions on the file to Owner: Read, Write, Execute; Group: Read,
Execute; Others: Read, Execute.
You can download a Windows version of Perl from
http://www.activestate.com/Products/ActivePerl/ , but you must be running a
web-server to use it with web pages.