From 5158e96b47e07082499308029fd0a64590c9437d Mon Sep 17 00:00:00 2001 From: Ton Hospel Date: Thu, 9 Oct 2003 15:04:53 +0000 Subject: [PATCH] ReadParse in the CGI docs From: "Ton Hospel" 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/CGI.pm b/lib/CGI.pm index c241562..c0d6c64 100644 --- a/lib/CGI.pm +++ b/lib/CGI.pm @@ -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, -- 2.7.4