You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jiří Pavlovský <ji...@getnet.cz> on 2011/12/08 23:02:19 UTC

ModPerl::RegistryLoader

Hello,

I'm trying to use ModPerl::RegistryLoader to compile my app at server 
startup.
I have the code below in my startup.pl.  I can see that the program is 
loaded at startup, but
when I hit the url it is executed as a normal CGI.

What am I doing wrong?


   sub trans {
      my $uri = shift;
       return File::Spec->catfile(SERVER_ROOT, $uri);
    }

    my $rl = ModPerl::RegistryLoader->new(
      package => 'ModPerl::RegistryPrefork',
        trans   => \&trans,
    );

       $rl->handler('/url/script.cgi');