You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2012/05/09 03:55:23 UTC

svn commit: r1335890 - /httpd/httpd/trunk/docs/manual/howto/cgi.xml

Author: rbowen
Date: Wed May  9 01:55:23 2012
New Revision: 1335890

URL: http://svn.apache.org/viewvc?rev=1335890&view=rev
Log:
Encourage best practice, even though it's a trivial example.

Modified:
    httpd/httpd/trunk/docs/manual/howto/cgi.xml

Modified: httpd/httpd/trunk/docs/manual/howto/cgi.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/cgi.xml?rev=1335890&r1=1335889&r2=1335890&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/cgi.xml (original)
+++ httpd/httpd/trunk/docs/manual/howto/cgi.xml Wed May  9 01:55:23 2012
@@ -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>