in reply to DynaLoader and LD_LIBRARY_PATH
Looks to me like you need to put all those %ENV settings into a BEGIN block where they are (before the "use foo" line). They aren't being set until after "use foo" is finished running (since use is itself an implicit BEGIN block), and that means you're loading your library (or trying to) based on the environment before you change it.
The alternate idea, if that doesn't work, is to check if %ENV has your settings in it, if it doesn't, just set it, then re-exec yourself. This, too, would need to happen inside a BEGIN block so that you run the exec before you try to "use foo".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DynaLoader and LD_LIBRARY_PATH
by CountOrlok (Friar) on Nov 10, 2005 at 18:34 UTC | |
by Tanktalus (Canon) on Nov 10, 2005 at 18:38 UTC |