On 2/6/06 9:06 AM, "Ken Perl" <[EMAIL PROTECTED]> wrote:
> Yes, I am using Apache2, the doc is very useful.
> in httpd.conf file, I use PerlInitHandler example.pm's handler() as
> starting point, when I update the code in handler(), I didn't see the
> updates, so I asked previous question.
> After I read the head of the doc, I make sense that I need to modify
> the global %INC after server is started.
> I am going to do like this
> sub handler {
> my $r = shift;
> my $s = Apache2::ServerUtil->server;
> my $WRoot = $s->dir_config('WRoot');
> use lib "$FindBin::Bin/$WRoot";
> }
Unless I am misunderstanding what you are trying to do, I think you just
need to add these two lines to your httpd.conf to have any changed modules
reloaded:
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
I don't think you have to do anything special with %INC.
Sean