Before I try it, I want to see if anyone has any insights.

I want to install version 2.0 of a perl module into a local directory. The concern is that version 1.0 of the same module already exists in the main PERL directory that I do NOT have write-access to.

Of course, I could always contact the system admin to upgrade the module, but I reckon it would not be high on his priority list.

In my script, I am using a standard header subroutine to pull in modules from both my local directory and the main PERL dir.

I am using a "use lib" statement for each directory, thus, what will @INC contain if it sees the same module name twice?

Are multiple "use lib" statments somehow prioritized, that is, will the last imported instance of a module overwrite any of those previously imported, or vice-versa?

I'm sure this same issue will arise again in the future. Any other ideas(not involving the sys admin) on what I can do?

Is their great risk of crashing anything? Mind you, I am doing this at work.

"Be proud, be a Goon"

In reply to installing multiple versions of same module by goonfest

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.