]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Encourage best practice, even though it's a trivial example.
authorRich Bowen <rbowen@apache.org>
Wed, 9 May 2012 01:55:23 +0000 (01:55 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 9 May 2012 01:55:23 +0000 (01:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1335890 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/howto/cgi.xml

index fcd70e6c5dd174fb3f3b569d74e14f21ed775e99..bf6f4dc6c842fdf70cf5fc8ae375a6cea0e95593 100644 (file)
@@ -485,8 +485,11 @@ print "Hello, World.";
 
       <highlight language="perl">
 #!/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 --&gt; $ENV{$key}&lt;br&gt;";
 }
       </highlight>