in reply to Re^5: Requring minimum perl version in a cpanfile ( use lib '.'; )
in thread Requring minimum perl version in a cpanfile

I interpret this discussion towards the idea of not supporting . in @INC in the future for somewhat plausible security reasons.

Note that this would not prevent manually adding dot to @INC.

Update: Also see this bug ticket, which I think was the original report.

Replies are listed 'Best First'.
Re^7: Requring minimum perl version in a cpanfile ( use lib '.'; )
by Anonymous Monk on Jan 20, 2017 at 08:22 UTC

    Heheh, ok this

    But I have another proposal. Instead of modifying CPAN clients, builders and App::Prove to inject '.' into @INC, what about instead injecting in @INC the *absolute path of the root of the distribution* being configured/built/tested/installed? I think that this would considerably reduce the number of side effects and it would help to really isolate runtime code that relies on '.' being in @INC (assuming that code is covered by a testsuite).

      Yes, if they do that, I think that should solve all these problems, and it's certainly better than adding the current directory as ".".

      In any case, I think it helps to be aware of the potential issue when using inc/-style module distribution/installation kits, especially when they won't get automatically updated ;)