CPAN auto_bootstrapby doc_faustroll (Scribe)
|on Apr 13, 2006 at 23:39 UTC||Need Help??|
doc_faustroll has asked for the
wisdom of the Perl Monks concerning the following question:
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: