sanPerl has asked for the wisdom of the Perl Monks concerning the following question:
It simply prints code as it is on the browser. Do I need to change in Apache settings? Isn't there any simpler way to just get started, without touching Apache default settings?#!/usr/bin/perl -wT use strict; use CGI; my $query = CGI->new(); print $query->header( "text/html" ), $query->start_html(-title => "My First CGI Script", -bgcolor => "#ffffcc" ), $query->h1( "This is a pretty lame Web page" ), $query->p( "Who is this Ovid guy, anyway?" ), $query->end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Basic CGI question
by wazoox (Prior) on Apr 05, 2006 at 10:55 UTC | |
|
Re: Basic CGI question
by marto (Cardinal) on Apr 05, 2006 at 11:06 UTC | |
by sanPerl (Friar) on Apr 05, 2006 at 12:21 UTC |