CGI::Simple(3pm) User Contributed Perl Documentation CGI::Simple(3pm)
NAME
CGI::Simple - A Simple totally OO CGI interface that is CGI.pm compliant
VERSION
This document describes CGI::Simple version 1.113.
SYNOPSIS
use CGI::Simple;
$CGI::Simple::POST_MAX = 1024; # max upload via post default 100kB
$CGI::Simple::DISABLE_UPLOADS = 0; # enable uploads
$q = new CGI::Simple;
$q = new CGI::Simple( { 'foo'=>'1', 'bar'=>[2,3,4] } );
$q = new CGI::Simple( 'foo=1&bar=2&bar=3&bar=4' );
$q = new CGI::Simple( *FILEHANDLE );
$q->save( *FILEHANDLE ); # save current object to a file as used by new
@params = $q->param; # return all param names as a list
$value = $q->param('foo'); # return the first value supplied for 'foo'
@values = $q->param('foo'); # return all values supplied for foo
%fields = $q->Vars; # returns untied key value pair hash
$hash_ref = $q->Vars; # or as a hash ref
%fields = $q->Vars("|"); # packs multiple values with "|" rather than "