James wrote: > Thus spake Christoph Lange ([EMAIL PROTECTED]): > > >>I am using "use Apache::Reload;" in a module but it does not work. I tell >>my "main"-script where to find this module via "use lib >>'/home/path/for/modules'". Might this be the (or one) reason why >>Apache::Reload does not work? >> >>Do I have to add the path for my modules to @INC in the server-startup >>file. And if, how? >> > > Yes. Something like the following works well. > > <perl> > use lib qw( /path/to/my/libs ); > </perl> > > PerlInitHandler Apache::Reload
just to explain why this happens: you didn't tell that you run under some registry handler, but apparently you are. registry handlers reset @INC after script's compilation, so if you want to *change* @INC, you should do it at the server startup, as James has answered to you. _____________________________________________________________________ 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/