Is the suggested implementation approach of collecting symlinks in a single tree a reasonable one?

If it helps, why not? :)  In case you have a runnable program, you can dump the values in the %INC hash after all modules have been loaded. Those are the full paths to the actual modules used. Then, simply create a symlinks directory with that particular snapshot of modules, and put it in PERL5LIB (or make it the first/only directory in @INC).

Architecture specific parts would have to go in an auto subdirectory, as usual. To list those, use PERL_DL_DEBUG, e.g.

$ PERL_DL_DEBUG=1 perl -MList::Util -e'print join"\n",sort values %INC +' ... DynaLoader::bootstrap for List::Util (auto/List/Util/Util.so) /usr/lib/perl5/5.8.8/AutoLoader.pm /usr/lib/perl5/5.8.8/Carp.pm /usr/lib/perl5/5.8.8/Exporter.pm /usr/lib/perl5/5.8.8/List/Util.pm /usr/lib/perl5/5.8.8/strict.pm /usr/lib/perl5/5.8.8/vars.pm /usr/lib/perl5/5.8.8/warnings.pm /usr/lib/perl5/5.8.8/warnings/register.pm /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/Config.pm /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/XSLoader.pm

In reply to Re: Freeze @INC? by almut
in thread Freeze @INC? by Surge

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.