Last time I did something like that, I ended up with code like this:
I'm not sure it's the best way, but it worked.BEGIN { unless ($ENV{LD_LIBRARY_PATH} =~ m[:/some/path:]) { $ENV{LD_LIBRARY_PATH} .= ':/some/path:'; exec $^X, $0, @ARGV; } }
In reply to Re: REDIRECT_LD_LIBRARY_PATH variable?
by Tanktalus
in thread REDIRECT_LD_LIBRARY_PATH variable?
by locked_user sundialsvc4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |