Hello folks. I am puzzled. I've been noticing a message from cpan that I don't remember seeing before; an example is below. I was seeing 17 build dirs and then I ran install for a couple more today, and it jumped to 19. Why and how is cpan doing this? I know it's necessary when a module being built/tested/installed has prerequisites but they seem to be hanging around long after they are necessary. Anyone? If you're in the know, kindly enlighten me.

Prepending blib/arch and blib/lib of 19 build dirs to PERL5LIB, reaching size 2952; for 'install'

perl is CygwinPerl 5.40.3
CPAN/cpan is v2.38

EDIT

I've attempted to answer the question for myself, see below. Only with partial success.

Nov 25, 2025 at 18:41 UTC


In reply to What is cpan (the installer) doing prepending all these directories to the PERL5LIB path? by Intrepid

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.