Perl Home Search CGI

1 CGI


14.02.2006

top [  up  ] - [ top ] 1.1 CGI::Lite

1.1   CGI::Lite
1.2   Play with Cookies
1.2.1   How to cgi post arguments and Cookies?
1.2.2   cookie_jar / Keep Cookies with LWP
1.3   Manually Parsing CGI key pairs
1.4   CGI to mod_perl

[ See also CGI Search ]

CPAN's CGI

use CGI;

my $q = CGI->new;

#  access via $q->param('your_key'), or:
foreach ($q->all_parameters) {
	print "$_ = ", $q->param($_), "\n";
}

# Browser Redirect / Location
print $q->redirect($uri);

CGI Redirect

print $q->redirect('/categ/?o=100000&lang=ger');

Send response in UTF fashion

print $q->header('text/html; charset=UTF-8');

copyright by reto - created with mytexi