Thanks Geoffrey, That is exactly what I wanted to know.
-Chris ----- Original Message ----- From: "Geoffrey Young" <[EMAIL PROTECTED]> To: "Chris Faust" <[EMAIL PROTECTED]> Cc: "Tom Schindl" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, April 18, 2004 1:23 PM Subject: Re: Defining specific vars in conf for a shared script > > > Chris Faust wrote: > > That helps Tom, I wasn't even sure if it was "PerlSetVar" that I needed to > > do. > > > > Beyond that, how do I get that from within script? If I'm going to use > > something in my script to read in the conf file then how do I know which > > config file I want? > > > > Using your example is there some > > "$r->get_vhost_settings{'HTML_TEMPLATE_ROOT'}" to get that value? > > for PerlSetVar it's > > use Apache::RequestUtil (); > use APR::Table (); > > $r->dir_config->get('HTML_TEMPLATE_ROOT'); > > $r will be scoped to the current request, so you'll only get those > PerlSetVar settings that apply to the current vhost or container. > > this is pretty standard stuff, so you might want to check out some of the > docs or books listed at perl.apache.org for more on directive scoping, > PerlSetVar and the like. > > HTH > > --Geoff > -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html