> > >If that is the case, My::Special::Module won't be loaded and >compiled until the very first time that someone hits /whatever. > >Just about EVERY module we use has a 'PerlModule' call to it, >outside any enclosing blocks. Although I do have 'PerlHandler' >directives in <Location> and <Files> blocks, the modules they use >are preloaded prior to the enclosing block. We're hip to shared >memory :-)
It just hit me.... That is why Apache::StatINC isn't working. We use Apache::StatINC on our development server, but we never preload any modules... We just use <Location /whatever> SetHandler perl-script PerlHandler My::Special::Module </Location> and Apache::StatINC works. If you preload, It's not going to put the module into %INC. Otherwise Apache::StatINC would intentionally overwrite that shared memory and destroy the purpose for using PerlModule in the first place. I could be wrong... but I think that the answer is that "It's not a bug, it's a feature", and that the behavior is actually correct. Rob -- "Only two things are infinite: The universe, and human stupidity. And I'm not sure about the former." --Albert Einstein