Stas,
A bit more testing has revealed more about modperl_inc.pl to me. I had neglected to realize that modperl_inc.pl only gets loaded on server startup. I had been running my tests using the following commands: t/TEST -start t/TEST -run-tests
That's the right paradigm.
When I made the changes to modperl_inc.pl, I had not restarted the server and therefore did not see the @INC output. Once I restarted the server, I began to see the output. The weird thing is that the output of @INC in modperl_inc.pl is very different from the output of @INC in my test script (see example at end of email).
Also, I found the blib paths in t/conf/apache_test_config.pm and decided to comment those out to see what would happen. As you can see from the output of @INC below, those changes did not appear to have any effect. Is the apache_test_config.pm file documented anywhere? What is this file doing?
Thanks, William
---------------------------------------------------------------------
setting ulimit to allow core files
ulimit -c unlimited; t/TEST 't/02WebBase.t'
/usr/local/apache/bin/httpd -d /home/quicktel/QT-Web/t -f
/home/quicktel/QT-Web/t/conf/httpd.conf -DAPACHE1 using Apache/1.3.29 waiting 60 seconds for server to start: 00:00$VAR1 = [
'/home/quicktel/QT-Web/lib',
'/home/quicktel/QT-Web/blib/lib',
'/home/quicktel/QT-Web/blib/arch',
'/home/quicktel/QT-Web/t',
'/usr/local/lib/perl5/5.8.2/i686-linux',
'/usr/local/lib/perl5/5.8.2',
'/usr/local/lib/perl5/site_perl/5.8.2/i686-linux',
'/usr/local/lib/perl5/site_perl/5.8.2',
'/usr/local/lib/perl5/site_perl',
'/usr/share/perl5/',
'.',
'/home/quicktel/QT-Web/t/',
'/home/quicktel/QT-Web/t/lib/perl'
];
As you can see after modperl_inc.pl the @INC is correct ('lib' is first).
waiting 60 seconds for server to start: ok (waited 1 secs)
server localhost:8529 started
server localhost:8530 listening (*)
02WebBase....ok 2/11[Tue Dec 23 10:22:45 2003] 02WebBase.t: $VAR1 = [ [Tue Dec 23 10:22:45 2003] 02WebBase.t: '/home/quicktel/QT-Web/blib/lib',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/home/quicktel/QT-Web/blib/arch',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/home/quicktel/QT-Web/lib',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: 'lib',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/5.8.2/i686-linux',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/5.8.2',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/site_perl/5.8.2/i686-linux',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/site_perl/5.8.2',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/site_perl',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/share/perl5/',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '.'
[Tue Dec 23 10:22:45 2003] 02WebBase.t: ];
So you must have messed things up and added blib somewhere by yourself. I think the easiest way to fix it if you can't find it yourself is to upload your tar.gz with all files somewhere, post the URL here and we will look at it.
p.s. I'm leaving in about 8 hours and will be back next week, but may be Geoff will be able to look at it.
__________________________________________________________________ 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