There are many things I would change about the way Perl installs on Win32. Whether the AS version or the standard distribution. The major change I would make is that I would do away with the <lib>\auto\... directories and place all dlls generated by building XS modules into the perl\bin. In this way, when a new perl is installed, it would empty perl\bin before installing thereby forcing all XS modules to have to be re-built before use.

There are also a bunch of other reasons why having all the XS-built dlls in a single place makes sense for purely Win32 reasons.

Distinguishing <install>\site\lib by version, is the wrong way to go. 99% of what lives in Perls lib directories is Pure Perl and so unaffected by version changes. It simply isn't necessary to replace or duplicate the vast majority of it when the binaries change.

The real problem is the mixing of the non Perl source parts (DLLs/SOs) with the Perl sources in the same subtree. And that's a big flaw (one of several) in the overall architecture of the Perl distributions. AS simply try to work with it as far as possible.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

In reply to Re^5: Detect which version of perl an XS module is linked against? by BrowserUk
in thread Detect which version of perl an XS module is linked against? by Limbic~Region

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.