On Fri, May 28, 2010 at 11:23:32AM -0700, Marilyn Sander wrote: > On May 28, 2010, at 9:33 AM, Paul Johnson wrote: > > > On Fri, May 28, 2010 at 06:14:38AM -0400, John Scoles wrote: > > > >> You will have to set those values before your modules load. > >> > >> So you should stick them in the BEGIN and that should work > > > > ... except where it doesn't, such as on Solaris for example. Here, > > LD_LIBRARY_PATH (at least) really does need to be set before the process > > starts. You can do this by writing a shell wrapper, or re-execing your > > perl script if the value is not already set.
> Have you considered doing a require instead of a use. With require, the > loading is done at run time, and would be governed by the setting of > LD_LIBRARY_PATH, at the time the require statement is executed. Just set > LD_LIBRARY_PATH before doing the require. I'm afraid that you may have misunderstood what I wrote. There are times when you really do need to set the variable before the process starts. -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/