You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Thomas K. Burkholder" <bu...@dogrobber.com> on 2001/05/16 21:01:51 UTC
Any way to make StatINC work for imported modules?
Hi,
I'm using mod_perl without the registry, because it seems a bit faster
and, well, more elegant. This means, in essence, that the configuration
is:
PerlInitHandler Apache::StatINC
PerlSetEnv PERL5LIB /home/burkhold/perl/local/share/perl/5.6.0
<Location /burkhold/foo>
SetHandler 'perl-script'
PerlHandler 'Foo::Foo'
</Location>
Now, Foo.pm, containing Foo::Foo is found at the PERL5LIB location
specified. If I add:
use Bar::Bar to Foo.pm (in the path specified by PERL5LIB above),
although Foo.pm is properly reloaded, I get an error that Bar::Bar is
not found.
It looks like StatINC only attempts to reload files referenced in the
initial configuration and files referenced by the initial configuration;
anyone know how to make it load new files without restarting the
server? Is it a bug? (It seems like a bug).
Thanks for any help,
//Thomas
Thomas K. Burkholder
burkhold@dogrobber.com
Re: Any way to make StatINC work for imported modules?
Posted by "Thomas K. Burkholder" <bu...@dogrobber.com>.
Whoops. Pilot error. Cancel that. Sorry.
//Thomas
"Thomas K. Burkholder" wrote:
> Hi,
>
> I'm using mod_perl without the registry, because it seems a bit faster
> and, well, more elegant. This means, in essence, that the configuration
> is:
>
> PerlInitHandler Apache::StatINC
> PerlSetEnv PERL5LIB /home/burkhold/perl/local/share/perl/5.6.0
> <Location /burkhold/foo>
> SetHandler 'perl-script'
> PerlHandler 'Foo::Foo'
> </Location>
>
> Now, Foo.pm, containing Foo::Foo is found at the PERL5LIB location
> specified. If I add:
>
> use Bar::Bar to Foo.pm (in the path specified by PERL5LIB above),
> although Foo.pm is properly reloaded, I get an error that Bar::Bar is
> not found.
>
> It looks like StatINC only attempts to reload files referenced in the
> initial configuration and files referenced by the initial configuration;
> anyone know how to make it load new files without restarting the
> server? Is it a bug? (It seems like a bug).
>
> Thanks for any help,
>
> //Thomas
> Thomas K. Burkholder
> burkhold@dogrobber.com