in reply to Expanding environment variables from ini file
There is an extremely stable approach I used on linux to "import" the ENV from a child process.
see code samples in Re^3: How to "source" a shell file in Perl? (Trojan Dump)
You might be able to adapt it for win/batch.
No parsing whatsoever needed, just nested calls using standard mechanisms and modules.
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
*) using Data::Dumper ,which is in core
°) by reading your INI or whatever your process is requiring
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Expanding environment variables from ini file
by Corion (Patriarch) on Aug 27, 2019 at 10:27 UTC | |
by haj (Vicar) on Aug 27, 2019 at 11:24 UTC | |
by LanX (Saint) on Aug 27, 2019 at 10:29 UTC | |
|
Re^2: Expanding environment variables from ini file
by Lotus1 (Vicar) on Aug 27, 2019 at 15:29 UTC |