Perrin Harkins schreef:
On 7/7/07, Christiaan Kras <[EMAIL PROTECTED]> wrote:
Because in my error messages it clearly says it can't find the modules
in @INC. Then it shows all the paths in @INC and my custom lib isn't set
there, instead, @INC is at it's original state.
Okay, you said you don't add to @INC at startup. How do you adjust
@INC? Is it possible you have a code path that doesn't set @INC? Is
it possible that some of your code is still running under CGI?
- Perrin
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.
I've build it in a way that it will run under CGI as well as mod-perl
(using perl-script handler). For a temporary solution I've added a CGI
script that's exactly the same as the perl script, but run under CGI, to
generate my Excel files without error. Not a very comforting solution,
but for now it works. Although I would love to know the real solution.
Thanks.
--
Christiaan Kras