On 7/11/07, Christiaan Kras <[EMAIL PROTECTED]> wrote:
I add to @INC with " use lib qw(/my/path) ". All the other modules I
load continue to work fine. Just those that use lazy loading fail
infrequently.

Okay, I think I see the problem.  When you change @INC during a
request, the change only lasts for the length of that one request:
http://perl.apache.org/docs/2.0/user/coding/coding.html#Request_localized_Globals

Because you do a "use lib", @INC is only set the first time you run
this script.  Change it to this:
unshift @INC, qw(/my/path/);

- Perrin

Reply via email to