I have a perl program (c.pm) which I am able to run from command line. However, I am not able to run it through web server.
In my c.pm, I am calling "use a::b"
Command line executes successfully.
But, the web server (error.log) reports"
Can't locate a/b.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/share/project/a/b/c.pm line 2.
Directory where c.pm is in @INC - I have both PERL5LIB setup in my bash profile to point to the DIRECTORY and in apache's virtual host
perl -V shows the directory is in @INC
perl e "use c" does not print any error
Permission is 755 for the files.
NOTE: in error.log - @INC does not contain DIRECTORY - don't know why.
I am not sure what the problem is. Any suggestions are appreciated.