|XP is just a number|
Re: how to improve: use MODULE VERSION LISTby kcott (Bishop)
|on Jan 07, 2017 at 09:12 UTC||Need Help??|
It's not clear whether your "CTB folks" want the newer/additional modules for just their own use ("try new things, build new tools, etc.") or to build code that will subsequently become production code.
If just for their own use, I'd suggest setting PERL5LIB (in .bash_profile, or equivalent) and that's all that needs to be done. From "perlrun: ENVIRONMENT":
"A list of directories in which to look for Perl library files before looking in the standard library and the current directory."
If production code, your "use autodie 2.29" example would be the better option.
Manipulating @INC is fraught with problems. Reversing it, and you end up with '.' at the front of the list: not a good idea. More sophisticated manipulation, like moving the first four standard paths (site/non-site + arch/non-arch) with
would change the @INC you show to
but falls over if the base @INC ever changes (e.g. you add vendor_perl paths) or the environment changes (e.g. PERL5LIB or PERLLIB are set).