ReadParse in the CGI docs
authorTon Hospel <perl5-porters@ton.iguana.be>
Thu, 9 Oct 2003 15:04:53 +0000 (15:04 +0000)
committerSteve Hay <SteveHay@planit.com>
Thu, 7 Jul 2005 12:11:38 +0000 (12:11 +0000)
From: "Ton Hospel" <me-02@ton.iguana.be>
To: perlbug@perl.org

(plus blank lines so example code is in verbatim paragraphs,
and bump $VERSION)

p4raw-id: //depot/perl@25092

lib/CGI.pm

index c241562..c0d6c64 100644 (file)
@@ -19,7 +19,7 @@ use Carp 'croak';
 #   http://stein.cshl.org/WWW/software/CGI/
 
 $CGI::revision = '$Id: CGI.pm,v 1.181 2005/05/13 21:45:26 lstein Exp $';
-$CGI::VERSION='3.10';
+$CGI::VERSION='3.10_01';
 
 # HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
 # UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING.
@@ -7346,13 +7346,15 @@ To make it easier to port existing programs that use cgi-lib.pl the
 compatibility routine "ReadParse" is provided.  Porting is simple:
 
 OLD VERSION
+
     require "cgi-lib.pl";
     &ReadParse;
     print "The value of the antique is $in{antique}.\n";
 
 NEW VERSION
+
     use CGI;
-    CGI::ReadParse;
+    CGI::ReadParse();
     print "The value of the antique is $in{antique}.\n";
 
 CGI.pm's ReadParse() routine creates a tied variable named %in,