- or download this
#!/usr/local/bin/perl
...
print start_html();
print "hello world\n";
print end_html;
- or download this
<Location /perl>
SetHandler perl-script
PerlHandler Apache::OutputChain Apache::NavBar Apache::Registry
Options +ExecCGI
</Location>
- or download this
sub handler {
my $r = shift;
...
warn "CT: ", $r->content_type, "\n";
$r->content_type eq 'text/html' || return DECLINED;
warn "OK text/html\n";
- or download this
print header(-type=>"text/html");