With what we have now, I cannot do:
Apache->server->dir_config('ModPerl::RegistryCooker::DEBUG'),
or do I?

Is Apache->server or its variation planned, because I cannot find it in 
todo/. I realize that now we can have more than one server, so it 
probably should be different but at least how do I get to the main 
server's object from modperl code when you don't have $r
I know that I can $r->server, but I need to get $s->dir_config at 
compile time, when I don't have $r.

I was grepping around, but couldn't find anything.

Basically what I want to do is:
use constant DEBUG => defined 
Apache->server->dir_config('ModPerl::RegistryCooker::DEBUG') ? 
Apache->server->dir_config('ModPerl::RegistryCooker::DEBUG') : D_NOISE;

So 'foo() if DEBUG' will be optimized away at compile time, rather than 
having $Debug as we had before. (D_NOISE actually is very noisy, but 
this is only during the initial development).

Thanks!

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to