Ah, LD_LIBRARY_PATH is a "special" variable. Setting it once your program has started (even in a BEGIN block) is usually too late.
Some previous discussion on this, with a particularly illuminating reply from good brother tye, can be found at programatically setting the LD_LIBRARY_PATH. Searching for LD_LIBRARY_PATH will lead you to the others.
In reply to Re (3): Setting env vars in current process
by VSarkiss
in thread Setting env vars in current process
by ruscoekm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |