note
toolic
In *nix, LD_LIBRARY_PATH is commonly a colon-separated list of directories. If you do not wish to clobber existing directories, you may want to either append or prepend a path:
<code>
$ENV{LD_LIBRARY_PATH} .= ":/my/new/path"; # append
$ENV{LD_LIBRARY_PATH} = "/my/before/path:" . $ENV{LD_LIBRARY_PATH}; # prepend
</code>
<p>It is also a good practice to check if LD_LIBRARY_PATH is defined before doing this.
623878
623878