Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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


In reply to @INC order not followed by misterperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found