Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

In CGI module doc. It state "COMPATIBILITY WITH CGI-LIB.PL"

Then it said "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";"

But for Form/input ...in cgi-lib used this

#!/usr/bin/perl require "cgi-lib.pl"; &ReadParse(*input); $uname= $input{'username'}; ........
But it wouldn't work in CGI. So how to make it work using CGI module.

Replies are listed 'Best First'.
Re: cgi-lib to cgi
by tilly (Archbishop) on Jun 16, 2005 at 03:40 UTC
    Glancing at the source to CGI.pm, it looks like this should work:
    use CGI; CGI::ReadParse(*input); $uname = $input{'username'}; ......
    A reply falls below the community's threshold of quality. You may see it by logging in.