| [reply] [Watch: Dir/Any] [d/l] |
Ok, Last night i printed out the @INC's from a cgi triggered script
and from root's command line and found them to be identical.
I then searched through the @INC paths and found the Rexec.pm nodule
and checked it's permissions. It is world readable. I didn't (yet) check
all the directories leading up to that but will as soon as i get a
chance to telnet (SSH) into work (the box in question). In the mean time
i'll try the whole shebang on the laptop (which has a very similar install
of Linux) and see if it works or not.
Thanks for the efforts, Dan.
| [reply] [Watch: Dir/Any] |
No, Perl does not use $PATH to find modules. It searches the directories in @INC, which are set up when you compiled Perl. You might have been modifying @INC by setting your PERL5LIB environment variable. You might also have put this module in a directory where user nobody doesn't have permission to see them. Or, it might work from command line because @INC includes your current working directory ("."), and the module you need happens to be there.
You might just want to print out the contents of @INC from command line and CGI and compare what's in them. | [reply] [Watch: Dir/Any] |