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:
and it said:DBG> f CSV (or f CSV.pm)
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:DB<1> Choosing (eval 125)[/usr/local/share/perl5/Text/CSV.pm:114] matc +hing 'CSV': 1 use Text::CSV_XS 1.02 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?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>
TY
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: @INC order not followed
by Fletch (Bishop) on Oct 19, 2022 at 03:25 UTC | |
by misterperl (Pilgrim) on Oct 19, 2022 at 13:08 UTC | |
by Fletch (Bishop) on Oct 19, 2022 at 19:50 UTC | |
by pryrt (Abbot) on Oct 19, 2022 at 21:23 UTC | |
Re: @INC order not followed
by LanX (Saint) on Oct 18, 2022 at 19:28 UTC | |
by misterperl (Pilgrim) on Oct 19, 2022 at 13:03 UTC | |
Re: @INC order not followed
by ikegami (Patriarch) on Oct 19, 2022 at 19:17 UTC | |
by misterperl (Pilgrim) on Oct 20, 2022 at 16:26 UTC |
Back to
Seekers of Perl Wisdom