Frank Wiles <[EMAIL PROTECTED]> writes: > [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 [...] > 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.
To quote a slightly longer excerpt: | This object can be later retrieved at request time via: | | my $dir_cfg = $self->get_config($s, $r->per_dir_config); which is clearly incorrect, unless "at request time" means something different to you than it does to me. This is in the "Directive Callback Subroutine" section, see http://perl.apache.org/docs/2.0/user/config/custom.html#toc_Directive_Callback_Subroutine DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED]