This is mostly a wisdom question rather than a knowledge question as I certainly will work this one pipe problem out. Intent: I'm going to write a script that will be checked out by a developer who needs to bootstrap a Linux dev enviro:

When the developer runs the script, it will install any needed Perl modules, and then proceed to setup a working dev enviro complete with specific third-party executables and libraries auto-configured and at the ready. The script will use CPAN to install a bundle of my needed modules for the set_up_enviro script. CPAN will bootstrap itself as well.

It looks relatively straightforward for now:

My wisdom question is: What are the use of CPAN in a script current best practices and wisest design decisions for auto bootstrapping of both the Perl enviro and dev enviro? I don't want to tax or try anyone's precious time or patience with how do I do this or that questions which can easily be answered by reading the darn docs. If this intrigues anyone or if anyone has some wisdom or war stories that involve the kind of auto bootstrapping I'm tasking myself with, I'd appreciate your very generously gifted grey matter.

Example areas of question would be: for scripting, CPAN or CPANPLUS? why? any war stories?

canonical example of use of CPAN in a script is:

for $mod (qw(Net::FTP Digest::SHA Data::Dumper)){ my $obj = CPAN::Shell->expand(’Module’,$mod); $obj->install; }

In reply to CPAN auto_bootstrap by doc_faustroll

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.