in reply to Setting a library path (export) to call SSH
I think what you have to do is set an environment variable from within perl, which you can do quite easily. There is a special hash variable called %ENV that you set like this:
Best of luck!$ENV{LIBPATH} = "/opt/freeware/lib:/opt/freeware/64/lib:/usr/lib:$ENV{ +LIBPATH}";
(Note that using backticks to do something like `export LIBPATH=/opt/freeware/lib:/opt/freeware/64/lib:/usr/lib:$LIBPATH` launches a shell, sets the environment variable in that shell, then quits, which doesn't do you much good.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Setting a library path (export) to call SSH
by Preceptor (Deacon) on Jul 08, 2013 at 20:18 UTC | |
Re^2: Setting a library path (export) to call SSH
by MidLifeXis (Monsignor) on Jul 09, 2013 at 12:31 UTC | |
by Spaceman_Spiff65 (Initiate) on Jul 10, 2013 at 14:52 UTC |
In Section
Seekers of Perl Wisdom