httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1335890 - /httpd/httpd/trunk/docs/manual/howto/cgi.xml
Date Wed, 09 May 2012 01:55:23 GMT
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>



Mime
View raw message