http://qs321.pair.com?node_id=11147506

misterperl has asked for the wisdom of the Perl Monks concerning the following question:

I created a CSV.pm in my local source dir. Which in retrospect might have been a bad idea, but up to today it's worked fine since the local dir is at the top of @INC.

However today, it started acting very strange. In debug I did this:

DBG> f CSV (or f CSV.pm)
and it said:
DB<1> Choosing (eval 125)[/usr/local/share/perl5/Text/CSV.pm:114] matc +hing 'CSV': 1 use Text::CSV_XS 1.02 2: ;
which is a 2-line file it found somewhere I guess? I grepped my each DIR in @INC and didn't see a file like that. /usr/local/share/perl5/Text/CSV.pm has hundreds of lines, but the file it found apparently only has those two. @INC is:
0 '/var/www/cgi-bin/project' 1 '../' 2 '/usr/local/lib64/perl5' 3 '/usr/local/share/perl5' 4 '/usr/lib64/perl5/vendor_perl' 5 '/usr/share/perl5/vendor_perl' 6 '/usr/lib64/perl5' 7 '/usr/share/perl5' 8 '.' DB<2>
and I have a CSV.pm in '/var/www/cgi-bin/project' with 755 privs, which it doesn't find. Also, if I add a line near the top of the pl like CSV::test() , a method in MY CSV.pm, it gets there. Any suggestions kind monks?

TY