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

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).
  • Comment on Re^7: Requring minimum perl version in a cpanfile ( use lib '.'; )

Replies are listed 'Best First'.
Re^8: Requring minimum perl version in a cpanfile ( use lib '.'; )
by Corion (Patriarch) on Jan 20, 2017 at 08:33 UTC

    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 ;)

Re^8: Requring minimum perl version in a cpanfile ( use lib '.'; )
by Anonymous Monk on Jan 20, 2017 at 23:15 UTC