Skip Menu |

This queue is for tickets about the Module-Load-Conditional CPAN distribution.

Report information
The Basics
Id: 116554
Status: resolved
Priority: 0/
Queue: Module-Load-Conditional

People
Owner: Nobody in particular
Requestors: 'spro^^*%*^6ut# [...] &$%*c
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.68



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 '.';
On Thu Jul 28 17:30:11 2016, SPROUT wrote: Show quoted text
> 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 '.';
I see you have fixed this. Thank you. RT won’t let me close the ticket.
thanks BinGOs!