vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Darin McBride wrote: >>>> I am having a problem with my perl module on AIX system. I cannot >>>> reset LIBPATH variable from my perl module. >>> >>> You can set it. What you mean is that setting it doesn't have any >>>effect. This is true. The value used is that at program startup. >> >> This is true. > > > You might be lucky enough to be able to put your env changes in a BEGIN > block and have that work. If not, you may need to resort to some > serious amounts of trickery. Actually, AIX is probably the only environment where you _can_ affect the dynamic library search path at runtime (Darin, you should know that <g>). Just make sure that you condition $ENV{LIBPATH} such that it's executed prior to perl 'use'ing the DBI extension. A BEGIN block which preceeds the use statement lexically will do the trick. Be aware that no flavor of *ix (which I'm aware of) other than AIX has a system loader which responds to changes after initial program load. Not sure if this is a bug or a feature. Steve |