I want to use html::mason under mod_perl but want all my CGI scripts to run as usual. I know that they will run faster under mod_perl but they would have to be "improved" as the code is not very "mod_perlish".
Is there a directive to tell apache to run scripts in one directory as mod_perl and run all others as CGI scripts?
Note that there is both Apache::Registry and Apache::PerlRun. The former keeps your program resident in memory, the latter only keeps the interpreter in memory but reinterprets the script on each hit. You'll save the expense of the fork() for perl, at least.
BTW, if your code runs under "use strict" it'll be fine under Apache::Registry.
Sean
I am still having problems just trying to get this stuff running.
Mason looks like a really neat module but I cant get it to work on my server. I cant get it to work in CGI mode either.
I use plenty of perl modules and have no problem with those. Perhaps I need to dig into the murky depths of apache and mod_perl to "understand" what I am doing.