Fellow Monks,

when I update a module, sometimes problems arise. The old version persists or using the module leads to a compilation error. I have investigated this matter earlier, which lead me into writing a program for finding duplicate modules in site_perl and vendor_perl but it doesn't help always.

More importantly, I think that it is not the right way to go, to remove the modules from .../vendor_perl/... when a new version is in .../site_perl/.... I had the @INC array printed and for some reason, the vendor_perl branch comes before the site_perl branch. I believe that it is the wrong order since the CPAN module installs things into site_perl. I haven't found where this is set up. Yes, I know, I could set PERL5LIB to .../site_perl/... but I would much rather figure out why it is in this order and where it is set up.


In reply to Order of paths in @INC by Sixtease

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



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.