[Gllug] perl & cgi glitches

Dean S Wilson dean.wilson3 at virgin.net
Sat Dec 22 14:10:10 UTC 2001


----- Original Message -----
From: "Robert Wood" <rob at empathymp3.co.uk>

> How about also adding the line
> print "Content-type: text/html\n\n";

That should do it, he must have nph turned on on the machine he's
developing with if it doesn't kick out a problem on that.

> <SNIP>
> > #!/usr/local/bin/perl -w
use strict; ;)

> print "Content-type: text/html\n\n";

> > print "<HTML>";
> > print "<HEAD>";
> > print " <TITLE>test</TITLE>";
> > print "</HEAD>";
> > print " <BODY TEXT = BLUE BGCOLOR = WHITE>";
> > print " Test perl scripts";
> > print "</BODY> </HTML>";
> </SNIP>

And maybe mention heredocs to him before he goes insane :)

    Dean
--
Profanity is the one language all programmers understand.
   ---  Anon


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list