in reply to Parse $ Variable in text file

Hello,

I used the following line to achieve this goal :

$ValCmd = eval qq("$ValCmdEx") ;
This expands all the variables contained in the string ValCmdEx .

These vars should all be correctly set before this command, or $ValCmd will be undef.
So when I do this, I usually test afterwards that I get a coherent result

I use this method because it's fairly straightforward and use strict compliant, but I have to admit that I’m not 100% sure of what it does exactly. Also, i'm not certain using eval is a good thing.

ZlR