[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: example implementation (was: Re: DRAFT: Fixing the architecture query options of dpkg.



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  | jules@jellybean.co.uk         |  6 Evelyn Rd	       |
|  Jules aka     | jules@debian.org              |  Richmond, Surrey   |
|  Julian Bean   | jmlb2@hermes.cam.ac.uk        |  TW9 2TF *UK*       |
+----------------+-------------------------------+---------------------+
|  War doesn't demonstrate who's right... just who's left.             |
|  When privacy is outlawed... only the outlaws have privacy.          |
\----------------------------------------------------------------------/


Reply to: