On Mon, 20 Feb 2006 21:09:44 +0100 [EMAIL PROTECTED] (Dag-Erling Smørgrav) wrote:
> The "Apache Server Configuration Customization in Perl" page claims > that the following code can be used in the request handler to retrieve > configuration values: > > my $dir_cfg = $self->get_config($s, $r->per_dir_config); > > however, it isn't quite clear what $self refers to in the request > handler. AFAICT, the correct sample code should be > > Apache2::Module::get_config('MyApache2::MyParameters', $s, > $r->per_dir_config()); > > as is shown further down. The part of the docs with my $dir_config = $self->get_..... is for writing a callback to process the configuration information, not retrieve it in the handler. And yes, you're right. The proper way to retrieve it in your handler is what you found further down in the file. If you're only doing simple parameters you might want to look into using ModPerl::ParamBuilder as it makes the whole process very very easy. --------------------------------- Frank Wiles <[EMAIL PROTECTED]> http://www.wiles.org ---------------------------------