Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

ModPerl::RegistryLoader

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


jira at getnet

Dec 8, 2011, 2:02 PM

Post #1 of 1 (258 views)
Permalink
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');

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.