#!/usr/bin/perl -w -- use strict; use warnings; use utf8; #this perl-file is written in utf-8 use CGI; use Data::Dumper; #zum debuggen Main(@ARGV); exit(0); sub Main { binmode STDOUT, ":encoding(utf8)"; my $cgi = CGI->new; $cgi->charset('UTF-8'); # Content-Type: text/html; charset=UTF-8 ## AND print $cgi->header(); # Write HTTP header print $cgi->start_html, $cgi->b(rand time, ' ', scalar gmtime), $cgi->start_form, $cgi->textfield('creators_name'), $cgi->submit, $cgi->end_form, '
', $cgi->Dump, '
', $cgi->escapeHTML( Dumper( $cgi ) ), '
', CGI->new( \%ENV )->Dump, $cgi->end_html; }