Of course. It does. I also tested it with a regular pl-file. It works there. Must be something mod_perl/cgi specific. I don't know what...
| [reply] |
Ah, not quite what I meant - is it in the @INC inside mod_perl?
From the guide:
Regarding the setting of PerlPassEnv PERL5LIB in httpd.conf: if you turn on taint checks (PerlTaintCheck On), $ENV{PERL5LIB} will be ignored (unset). See the 'Switches -w, -T' section.
so I generally use a startup file to set the @INC I need at runtime under mod_perl: http://perl.apache.org/docs/1.0/guide/config.html#The_Startup_File.
| [reply] |
Error message:
Can't locate PMLS/T9/Common.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache2
/data/nlpdev/pm /data/nlpdev
/usr/lib/perl5/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at
/data/nlpdev/dia.cgi line 17, line 9. BEGIN
failed--compilation aborted at /data/nlpdev/dia.cgi line 17,
line 9.
but in /data/nlpdev/pm is a (working) symbolic link PMLS-> someotherdir
Needless to say, that a cat /data/nlpdev/pm/PMLS/T9/Common.pm works. If I remove the Link and replace it with the directory it is pointing to, everything works. I see no error on my side.
| [reply] |