On Mon, 11 Jan 1999, Marcus Brinkmann wrote:
> I tried to implement this but failed somehow. Could somebody give a small
> example how to do it in perl?
> 
> task: Set a environment variable and run a program which options are in an
> array in this environment.

Um..

well, if you're simply trying to pass environment variables to a program,
the perl might look like this:

#!/usr/bin/perl
#
# modify environment and run command

$ENV{'ARCH_X_Y_Z'} = 'a-b-c';

system($ARGV[1]);

..or have I misunderstood?..

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.          |
\----------------------------------------------------------------------/

Reply via email to