- or download this
LoadModule perl_module modules/mod_perl.so
# ...
...
PerlOptions +ParseHeaders
</Location>
</IfModule>
- or download this
<FilesMatch "modperl-test.pl">
SetHandler perl-script
...
Options +ExecCGI
PerlSendHeader on
</FilesMatch>
- or download this
package TestModPerl;
...
1;
__END__
# apparently in mod_perl2 having __END__ is OK.
- or download this
#!/usr/bin/perl
...
print "Content-type: text/html\n\n";
TestModPerl::run();
TestModPerl::total();