LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: David Lloyd <lloy0076@rebel.net.au>
To : Toby Corkindale <tjcorkin@sa.pracom.com.au>
Date: Thu, 31 May 2001 16:21:13 +0930
Re: PERL Question
Well it turns out that I had a mod_perl, modules and @INC drama
happening. After some research, I have managed to fix my problem like
this:
1) Set:
PerlSetEnv PERL5LIB /path to my own modules
PerlInitHandler Apache::StatINC;
This causes mod_perl to stat my module before it is used. Its initial
behaviour is to load modules just once and then leave them alone until a
server restart. Apache::StatINCD looks at all files in @INC and stats
them to see if they've changed, and if so causes mod_perl to reload
them.
The reason I needed to set the env. variable is that Apache::StatINC
only looks in the default @INC and only once at server startup, so if
you have modules which aren't in the default @INC you have to make sure
their @INC entry is there at server startup.
DSL
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page