in reply to Environment Var Problem

No, the parent process will not have its ENV variable changed, since you're forking off a subprocess when you run a Perl script, and when control comes back to the parent, the original environment is restored.

If I may suggest an alternative way ... use a statement like:

use lib [library path];
where [library path] is the path of the modules you want to include.

That way you have direct control, from within the script, of where you get the module(s).


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: Environment Var Problem
by Anonymous Monk on May 09, 2006 at 17:26 UTC
    Good try, but it doesn't work. Neither does a -Idir switch.