On Sun, 10 Jan 1999, Marcus Brinkmann wrote: > Question: Can I modify the environment of the invoking shell from inside a > perl script? This would make it easier to use the script.
Nope. (This is more or less fundamental to the way environment variables work). The standard approach is to eval the output of a program. c.f. eval `ssh-add` as used by ssh. Jules /----------------+-------------------------------+---------------------\ | Jelibean aka | [EMAIL PROTECTED] | 6 Evelyn Rd | | Jules aka | [EMAIL PROTECTED] | Richmond, Surrey | | Julian Bean | [EMAIL PROTECTED] | TW9 2TF *UK* | +----------------+-------------------------------+---------------------+ | War doesn't demonstrate who's right... just who's left. | | When privacy is outlawed... only the outlaws have privacy. | \----------------------------------------------------------------------/