Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: How and where to pass PERL_USE_UNSAFE_INC=1; to Perl while compilation.

by syphilis (Bishop)
on Sep 25, 2021 at 05:57 UTC ( #11137008=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2021-12-01 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (14 votes). Check out past polls.

    Notices?