> > A module is a package that lives in a file of the same name.  For
> > example, the Hello::There module would live in Hello/There.pm.  For
> > details, read L<perlmod>.  You'll also find L<Exporter> helpful.  If
> > you're writing a C or mixed-language module with both C and Perl, then
> > you should study L<perlxstut>.
> > [snipped]
> 
> Is there any way to make mod_perl reload modified modules in some
> directories but not check at all in others?  I'd like to avoid
> the overhead of stat'ing the stable modules every time but still
> automatically pick up changes in things under development.

We have discussed this many times before. The conclusion was to modify the
StatINC module to make its behavior configuration more flexible, rather
than just On|Off options. You are very welcome to modify this module and
add it the missing features so you can tell for example:

  PerlSetEnv StatINCDomain /foo /bar

and only these directories will be watched after.

Before you start implementing this feature, please grab the latest copy
from the CVS or CVS snapshot http://perl.apache.org/from-cvs/modperl .

Thanks a lot for this invaluable contribution!

P.S. also take a look at somewhat different solution provided by Randal,
see his Stonehenge::Reload at
http://www.mail-archive.com/modperl@apache.org/msg03068.html

P.S.S - Ha, while looking for Randal's modules at CPAN (they aren't there!
Randal?) I've found Module::Reload module written by Doug and Joshua
Pritikin back in 1998, you might find it useful too!

_______________________________________________________________________
Stas Bekman    mailto:[EMAIL PROTECTED]      http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com

Reply via email to