in reply to Re^2: Unable to see environment variable set
in thread Unable to see environment variable set

I {changed directory, modified my environment} in a perl script. How come the change disappeared when I exited the script? How do I get my changes to be visible?
  • Comment on Re^3: Unable to see environment variable set

Replies are listed 'Best First'.
Re^4: Unable to see environment variable set
by Bloodnok (Vicar) on Jul 22, 2008 at 10:50 UTC
    Use a shell script and, depending on whether you're running csh (some do;-) or a variant on the Bourne shell, either source file or . file.

    HTH ,

    At last, a user level that overstates my experience :-))