Right, I guess it just "feels" like it is working under mp1, since I can get @INC to contain "." (the current dir) and use StatINC in all the developer locations. In the mp2 server, it shows me a different @INC, that doesn't include "." (is it possible in mp2?).
You almost got me ;) I was looking for the place in mp2 that removes "." from @INC. After awhile it struck me to check the perl source, and perl.c had:
if (!PL_tainting) incpush(".", FALSE, FALSE, TRUE);
It's been there for a long time (tested with 5.005_03), though I didn't know/remember that :(
# here you have "." % perl -le 'warn join "\n", @INC, "";' # and here you don't % perl -Tle 'warn join "\n", @INC, "";'
"." is added to @INC only if you aren't running with -T. Nothing specific to mod_perl.
You can still add it using:
use lib qw(.);
if you really have to. But it's especially bad idea with mp2/threaded mpm, where one should never use chdir during request time and rely on cwd. See:
http://perl.apache.org/docs/2.0/user/coding/coding.html#Thread_environment_Issues
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com