On Wednesday 07 January 2004 02:49, Bevelock, Mike wrote: > David: > > When running under mod_perl, I get an error like: > > > > plugin error - Can't locate AutomagicLinks.pm in @INC (@INC > > contains: ....) > > > > INC doesn't include the absolute path set in the use lib > > declaration in > > codestriker.pl. > > In mod_perl, the @INC array can't be modified after server startup: > > http://perl.apache.org/docs/1.0/guide/porting.html#_INC_and_mod_perl
I remember reading this before: "The only opportunity to temporarily modify @INC is while the script or the module are loaded and compiled for the first time. After that its value is reset to the original one. " I think I understand the behaviour now. The first time a new Perl module is loaded, the "use lib" at the start of the CGI file will tell the interpretor how to load the other Perl modules for compilation purposes. In my situation, since this effectively loaded all of the supporting modules, this worked fine when the application was being used in practice. However, the AutomagicLinks.pm module (the TT filter) wasn't effectively "pre-loaded" during compilation, hence the runtime error. Thank you.. if what I have said above is correct, I understand how mod_perl works a little better now. Cheers, David _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
