in reply to Re^2: 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.
That is how it was working in the application since years with perl version 5.24.
Doesn't mean it wasn't buggy; it just means you always set the CWD to be the script's directory before starting it up. You literally had to take an extra step to work around the bug.
also finding all these files and updating is quite a task for us.
find -name '*.pl' -exec perl -i~ -pe'$_ = "use FindBin qw( \$RealBin ) +; use lib \$RealBin;\n$_" if $. ==2' {} \;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How and where to pass PERL_USE_UNSAFE_INC=1; to Perl while compilation.
by Anonymous Monk on Sep 28, 2021 at 18:13 UTC |