Thanks kcott for the reply, I'll try to clarify:
Once the CTB folks have added a new feature, using a new or improved CPAN module, they certainly want it to go into production. Thus, they are willing to update the code to:
use autodie 2.29Where I run into problem is that Perl does not find version 2.29 given the order of the default @INC. Remeber, the RTB folks are still looking for autodie 2.23 in the core perl paths when the interpreter was compiled; but, the CTB folks want to get the new one. Unfortunately, when compiling Perl with the otherlibdirs option (to include additional locations), it adds the new locations to the end of @INC.
So it seems, I am left with no other choice but to manipulate the @INC order in the code. Typically, once tools make their way into production, the owner (unix user) of scripts has a very limited shell environment (think apache user or www user). So relying on PERL5LIB, while okay for testing, is not so good for production.
Thus, your slicing the INC is an option. BTW, why is the '.' location not good in the @INC?
Smile
Steve
In reply to Re^2: how to improve: use MODULE VERSION LIST
by smile4me
in thread how to improve: use MODULE VERSION LIST
by smile4me
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |