We have a spring boot application, which calls a perl script. It seems that the system variable PERL5LIB is not set in the context of the application, because the perl script compilation fails:
Can't locate JSON.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ...
(When I run the script in directly in the shell it works - because PERL5LIB is set properly.) I tried adding it to application.properties:
PERL5LIB=....
but this didn't work either. What am I doing wrong?