Subject: | set PERL_USE_UNSAFE_INC environment variable when running configure/build/test/install |
The PERL_USE_UNSAFE_INC environment variable should be set when running Makefile.PL, Build.PL, and the build, test, and install commands. This will add . to @INC in the subprocesses, allowing them to find files relative to the dist root.
Example code:
local $ENV{PERL_USE_UNSAFE_INC} = 1
unless exists $ENV{PERL_USE_UNSAFE_INC};