perlquestion
mpeters
<p>I have a script which uses [cpan://Business::OnlinePayment::PayflowPro] which in turn uses a <code>.so</code> file from PayflowPro. It's easy enough for Dynaloader to link to it if it's in the standard lib location, but I want this project to be self-contained, so I'm not putting it in the standard location.
</p>
<p>
I can fix this if I set <code>$ENV{LD_LIBRARY_PATH}</code> in my shell or the process that spawns this script, but I would like to be able to do it from within my script, but it doesn't work like that.
</p>
<p>
I assume that there's some [cpan://DynaLoader] incantation I can perform that will work, but I can't quite get my finger on it. Any ideas?
</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-377463">
<br>-- <i>More people are killed every year by pigs than by sharks, which shows you how good we are at evaluating risk.</i> -- Bruce Schneier
</div></div>