alietzow has asked for the wisdom of the Perl Monks concerning the following question:
This one does NOT work in either Netscape or Konquerer.#!/usr/bin/perl -w use CGI; my $q = new CGI; print $q->header; print "<CENTER><H1>Show me the monkey!</H1></CENTER><BR>"; print $q->end_html;
---------------------#!/usr/bin/perl -w # CGI to select data from a SQL database use CGI; # use strict; my $co = new CGI; print $co->header; print "<CENTER><H1>CGI Environment Variables Example</H1></CENTER><BR> +"; # print $co->start_html(-title=>'CGI Environment Variables Example', # -BGCOLOR=>'black', # -TEXT=>'white'); # print $co->center($co->h1('CGI Environment Variables Example')); # foreach my $key (sort keys %ENV) { # print $co->b("$key=>$ENV{$key}"), # $co->br; # } print $co->end_html;
Andrew Lietzow
Format tweeks - dvergin 2002-05-16
Edit kudra, 2002-05-17 Changed title
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: This makes NO sense!!!
by jepri (Parson) on May 17, 2002 at 04:31 UTC | |
by alietzow (Initiate) on May 17, 2002 at 05:57 UTC | |
Re: This makes NO sense!!!
by cmilfo (Hermit) on May 17, 2002 at 04:41 UTC | |
Re: This makes NO sense!!!
by silent11 (Vicar) on May 17, 2002 at 05:36 UTC |