#!/usr/bin/perl -- use strict; use warnings; use CGI (); use Data::Dumper (); #zum debuggen Main( @ARGV ); exit( 0 ); sub Main { return DebugCGI(); } sub DebugCGI { binmode STDOUT, ":encoding(utf8)"; my $cgi = CGI->new; $cgi->charset('UTF-8'); # Content-Type: text/html; charset=UTF-8 # $cgi->cookie; # "fetch" cookies print $cgi->header(); # Write HTTP header print $cgi->start_html, $cgi->b( rand time, ' ', scalar gmtime ), '', '', '', '', '', '
', $cgi->Dump, '
', $cgi->escapeHTML( DD($cgi) ), '
', $cgi->escapeHTML( 'CGI::Cookie->fetch' ), '
', $cgi->escapeHTML( DD( { CGI::Cookie->fetch } ) ), '
', '

And now %ENV

', CGI->new( \%ENV )->Dump, $cgi->end_html; } sub DD { scalar Data::Dumper->new( \@_ )->Indent(1)->Useqq(1)->Dump; } __END__