So is there a work around? short of setting the environment and invoking a child copy of self? nevermind that doesn't work.
Be Appropriate && Follow Your Curiosity
| [reply] |
Of course :-) If you are root on a linux machine (maybe others, dunno) you can use ldconfig to put the library directory into the system default path. You could make a shell wrapper for your script. You could make a C or other high-level language wrapper.
I have not looked to see how to do binary plugins in perl. It can be done in C, so it can probably be done in perl. Binary plugins allow the application (perl) to link to a shared library defined at run time. I've done in in C, but there must be a perl way, Maybe someone with experience in that space can help you. In my experience it is not simple and the other techniques are likely easier to create and maintain.
| [reply] |
Oh, Duh, you do it (dynamic loading of DLLs)with DynaLoader if you have that. Silly me. But the other ways are still probably better. Time to go for a beer.
| [reply] |
| [reply] |
| [reply] |