Subject: | Unconditional @INC localisation |
With version 0.66, which introduces the FORCE_SAFE_INC option, @INC is localised regardless of that option, preventing loaded modules from legitimately modifying @INC.
I think it would be better localise it only when changing it, like this:
local @INC = @INC[0..$#INC-1]
if $FORCE_SAFE_INC && $INC[-1] eq '.';