Perl Home Search CGI

1.1 CGI::Lite


14.02.2006

1 CGI [  up  ] - [ top ] 1.2 Play with Cookies

You can use this module to decode form and query information, including file uploads, as well as cookies in a very simple manner; you need not concern yourself with the actual details behind the decoding process.

[ CPAN.org/doc/BENL/CGI-Lite-2.0/Lite.pm ] - [ CPAN.org ]

use CGI::Lite;

print "Content-type: text/html\n\n";

my $cgi = new CGI::Lite;
my $q = $cgi->parse_form_data ('GET');

foreach (keys %{$q}) {
        print "$_ $q->{$_}\n";
}

If you're looking for more comprehensive CGI modules, you can either use the CGI::* modules or CGI.pm. Both are maintained by Dr. Lincoln Stein (lstein@genome.wi.mit.edu) and can be found at your local CPAN mirror.




Links:

  1. perl/cgi-lite.htm (Perl)
    http://www.infocopter.com/perl/cgi-lite.htm
    Perl module to process and decode WWW forms and cookies (2004-06-24 10:31)

  2. perl/cgi.htm (Perl)
    http://www.infocopter.com/perl/cgi.htm
    CGI Processing with Perl (2004-06-24 10:27)

  3. Perldoc.com/cpan/CGI/WML.html (CInternet:Webmaster)
    http://www.perldoc.com/cpan/CGI/WML.html
    CGI::WML - Subclass LDS's "CGI.pm" for WML output and WML methods (2002-07-14 21:21)


copyright by reto - created with mytexi