cgi programming in Perl
- From: "Mark Tarver" <dr.mtarver@xxxxxxxxxxxxxx>
- Date: 23 Nov 2006 14:45:10 -0800
Hi,
I'm working from 'CGI Programming with Perl' from O'Reilly. I've
copied this program from the book.
#!/usr/bin/perl
print <<END_OF_HTML;
Content-type: text/html
<HTML>
<HEAD>
<TITLE> about this server </TITLE>
</HEAD>
<BODY>
<H1> About this Server </H1>
<PRE>
Listening on Port: $ENV(SERVER_PORT)
</PRE>
<HR>
</BODY>
,/HTML>
END_OF_HTML
into a file called server.cgi. Perl is on my machine. If I click on
it using Explorer then zilch. Its supposed to show up as an HTML file
with the server port displayed. Instead it simply does not appear at
all.
The first line looks like a piece of Unix - telling the machine to
execute the file using Perl in bin. I don't have Unix but XP. I do
have a directory C:/Perl/bin with a host of executables in it. Any
ideas on how to get this to go?
Mark
.
- Follow-Ups:
- Re: cgi programming in Perl
- From: JT
- Re: cgi programming in Perl
- Prev by Date: Re: Free Perl Editor
- Next by Date: Re: Free PERL Editor
- Previous by thread: PSPad and running Perl Scripts
- Next by thread: Re: cgi programming in Perl
- Index(es):
Relevant Pages
|