Ken Miller wrote: > I've been successfully using Apache::Reload for a few weeks now. However, I > installed it on my home development system, and I'm getting this error when > accessing a module that contains 'use Apache::Reload': > > [Mon Aug 26 09:59:12 2002] [error] Can't locate main.pm in @INC (@INC > contains: ... at /home/miller/lib/perl5/site_perl/5.6.1/Apache/Reload.pm > line 132. > > (yes, I install some modules under my own root tree - it keeps the base > distribution nice and clean) > > What's main.pm, and why can't Apache::Reload find it? I've searched the > archives, but have had little success in finding anything interesting. > > Apache1.3.26, mod_perl 1.26.
In addition to Darren's reply, this explains what happens: http://perl.apache.org/docs/2.0/api/mod_perl-2.0/Apache/Reload.html#Description says: Note that Apache::Reload operates on the current context of @INC. Which means, when called as a Perl*Handler it will not see @INC paths added or removed by Apache::Registry scripts, as the value of @INC is saved on server startup and restored to that value after each request. In other words, if you want Apache::Reload to work with modules that live in custom @INC paths, you should modify @INC when the server is started. ----- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com