in reply to Parse $ Variable in text file
I used the following line to achieve this goal :
This expands all the variables contained in the string ValCmdEx .$ValCmd = eval qq("$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
|
|---|