here you go system $^X, $0 ; | [reply] [d/l] |
If I use system then I will end up with tons of perl processes (one for each DLL change).
| [reply] [d/l] |
| [reply] |
dynamically select a specific DLL to load from a perl script without What do you mean by that?
Any "dynamically load a dll" code ought to take an absolute path to said dll
| [reply] |
I use a Perl module built with Swig, which implements the interface with a dynamic library coded in C++.
I need to use this module with different versions of the C++ library, so what I do is: set the PATH environment variable according to the desired library version, use exec so that this environment variable is taken into account (it doesn't work otherwise), then require the module generated by Swig
| [reply] |
path is not like ld_library_path, its not cached, you don't need exec trick for it to be seen after perl is started, just change path then load the module, you can use Module::Load / Module::Load
| [reply] |