Sounds like you have a lot of poor planning from the previous support person to amend. (doesn't seem wise to keep custom scripts under the perl directory)

Figure out all the non-core modules you need by parsing all your scripts, who cares what .pm files are actually installed..you just care about the ones being used. Then download the .ppd and .tar.gz files for each module from the appropriate site(s).

After that write a script to automate the installation of all those modules. You'll need to modify the path within the .ppd file to match that of the locally installed/copied .tar.gz files.

ActivePerl is pretty simple to install silently, check the docs for exact syntax/options. In the environment I work we use SMS(ugh), so I have an SMS issuance that installs perl itself and then runs my script to install the extra modules. I do something like this to install Perl itself:

msiexec.exe /I blah.msi TARGETDIR=D:\PERL AddPerlToPath=NO /q
and my install script for the modules that runs after perl itself is installed is like this :
use PPM; .... # array of fully qualified path to each .ppd file for ( @modules_to_install ) { print "Attempting to install $_\n"; if( PPM::InstallPackage("package" => $_) ) { print "Successfully installed $_\n"; } else { print "Failed to install $_\n"; $errors++; } }

Note: I wrote my automated module install script before ppm3 came about, so there may be newer ways/abilities to do this. After thousands of successful installs it has worked very well. If the server was healthy enough for Perl itself to install from the .msi file then the module install script always ran successfully for me.

In reply to Re: Maintaining a Perl Installation by blueAdept
in thread Maintaining a Perl Installation by ChrisS

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.