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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.