Hello,
I have a set of modules that i had developed and installed locally using the PREFIX= option.
perl Makefile.PL PREFIX=/mylocal/path
make;make test;make install
It had installed all the modules under
/mylocal/path/lib/perl5/site_perl/5.10.0

The other day I had to make modification to one of the modules. So I did, and then executed
perl Makefile.PL PREFIX=/mylocal/path
make;make test;make install

Well I was hoping that the originally installed module under /mylocal/path/lib/perl5/site_perl/5.10.0 would get replaced.
However what i noticed is it installed a complete new copy under /mylocal/path/share/perl5

I had built the module directory structure using h2xs.
I am assuming when I initially installed the modules, probably the perl version was 5.10.0 Currently the perl version is v5.10.1 (probably the sysadmin upgraded the system or something).

Question
1) What did i do wrong? and
2) How can I fix this such that any changes and re-install to an existing module will over-write the original one instead of creating a new copy under the share directory.

Thanks

In reply to Question on installing modules in local dir using PREFIX by Anonymous Monk

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.