From: Richard Bowen Date: Wed, 9 May 2012 01:55:23 +0000 (+0000) Subject: Encourage best practice, even though it's a trivial example. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ecaf9b29393974999a12e4a162d7d24bad985d;p=thirdparty%2Fapache%2Fhttpd.git Encourage best practice, even though it's a trivial example. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1335890 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/howto/cgi.xml b/docs/manual/howto/cgi.xml index fcd70e6c5dd..bf6f4dc6c84 100644 --- a/docs/manual/howto/cgi.xml +++ b/docs/manual/howto/cgi.xml @@ -485,8 +485,11 @@ print "Hello, World."; #!/usr/bin/perl +use strict; +use warnings; + print "Content-type: text/html\n\n"; -foreach $key (keys %ENV) { +foreach my $key (keys %ENV) { print "$key --> $ENV{$key}<br>"; }