|Perl Monk, Perl Meditation|
Re^2: How and where to pass PERL_USE_UNSAFE_INC=1; to Perl while compilation.by syphilis (Bishop)
|on Sep 25, 2021 at 01:39 UTC||Need Help??|
I think you'd pass it as an argument to configure ...
In perl5260delta.pod we find:
From that, I gather that you don't actually configure perl to have "." in @INC, but you instead set the environment variable PERL_USE_UNSAFE_INC to 1 in order obtain the "unsafe" @INC.
OTOH, we have in perlrun.pod:
And this suggests that it is possible to configure perl such that @INC is "unsafe" by default.
I, too, would guess that would be done as Fletch proposed.
But I couldn't locate any definitive documentation on the matter.
UPDATE: I've just received word from the p5p list that the correct configure arg to use is -Udefault_inc_excludes_dot and that this is documented in the INSTALL file (which is located in the top level directory of the perl source distro).