From: Rich Bowen Date: Wed, 9 May 2012 01:55:23 +0000 (+0000) Subject: Encourage best practice, even though it's a trivial example. X-Git-Tag: 2.5.0-alpha~6858 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d46ae95bf72c8a34a56504997a6a2b86270f294a;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>"; }