Re: CGI.pm and CGI_Lite
Mike Fletcher (fletch@bsat.com)
Thu, 14 Aug 1997 10:07:10 -0400
> CGI_Lite is from Shishir Gundavaram. He wrote "CGI Programming on
> the World Wide Web" published by OrA.
>
> It has a very neat feature for those of us coming from cgi-lib.cgi
> practice:
>
> %data = $cgi->parse_form_data();
>
> or of course you could use %in.
>
> Where can I do that so easily with CGI.pm I don't know. But I use
> CGI.pm nonetheless.
From the CGI.pm pod:
COMPATIBILITY WITH CGI-LIB.PL
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
print "The value of the antique is $in{antique}.\n";
CGI.pm's ReadParse() routine creates a tied variable named
%in, which can be accessed to obtain the query variables.
Like ReadParse, you can also provide your own variable.
Infrequently used features of ReadParse, such as the
creation of @in and $in variables, are not supported.
--
Fletch |"Like a great blue salmon of justice, the __`'/|
fletch@bsat.com | mighty TICK courses upstream to the very \ o.O'
770 209-8037(w) | spawning ground of evil!" -- The Tick =(___)=
U