Help for this page

Select Code to Download


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