in reply to Re: How and where to pass PERL_USE_UNSAFE_INC=1; to Perl while compilation.
in thread How and where to pass PERL_USE_UNSAFE_INC=1; to Perl while compilation.

I did try to add SET PERL_USE_UNSAFE_INC=1;

Oh ... I wasn't expecting that you're on Windows.

It's the ";" at the end of you're "SET" command that's screwing things up:
C:\>set PERL_USE_UNSAFE_INC=1; C:\>perl -le "print for @INC;" C:/perl-5.34.0/site/lib/MSWin32-x64-multi-thread C:/perl-5.34.0/site/lib C:/perl-5.34.0/lib/MSWin32-x64-multi-thread C:/perl-5.34.0/lib C:\>set PERL_USE_UNSAFE_INC=1 C:\>perl -le "print for @INC;" C:/perl-5.34.0/site/lib/MSWin32-x64-multi-thread C:/perl-5.34.0/site/lib C:/perl-5.34.0/lib/MSWin32-x64-multi-thread C:/perl-5.34.0/lib . C:\>
Cheers,
Rob
  • Comment on Re^2: How and where to pass PERL_USE_UNSAFE_INC=1; to Perl while compilation.
  • Download Code

Replies are listed 'Best First'.
Re^3: How and where to pass PERL_USE_UNSAFE_INC=1; to Perl while compilation.
by Anonymous Monk on Sep 27, 2021 at 06:10 UTC
    HI Rob, Thank you for pointing this out and trying it, it worked !!!

    To have persistent env variable created i just used setx later on instead of set.

    Regards