Subject: | strange order for PERL_LOCAL_LIB_ROOT |
The PERL_LOCAL_LIB_ROOT environment variable is a private environment
variable used by local::lib to manage its list of local::lib directories.
I find that the current order in which the directories are listed is
strange because it is reversed compared to all others variables of the
same kind on POSIX systems: PATH, PERL5LIB, MANPATH. In all those
variables, the most important directory is the first one.
I propose to reverse the order of PERL_LOCAL_LIB_ROOT to be more
consistent with the environment. This is just a cosmetic change that
will not have side effects because:
- PERL_LOCAL_LIB_ROOT is an internal variable that is managed only
through local::lib (its content and in particular the order, has never
been publicly documented)
- the commands available to the user are "activate <path>" or
"deactivate <path>": this is a list, not a stack. There is no concept of
order in the local::lib code managing that variable, so there is no risk
of strange behavior if different versions of local::lib are used in each
local::lib environment. So no impact.
- the order of PERL_LOCAL_LIB_ROOT is never used to construct values of
other variables (PERL5LIB, PATH): adding is done in head, removing is
done by filtering. So no impact.
--
Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/