D
Dirk Einecke
Hi.
I've a id and a value. Now I want a variable with id as name and the
content from value as value of this variable. I tryed like this:
id = 'foo'
value = 'This is the value.'
eval "$#{id} + ' = ' + #{value}" # -> $id = 'This is the value.'
But this is not working. What's wrong? Is there a better/faster way?
greetings
Dirk Einecke
I've a id and a value. Now I want a variable with id as name and the
content from value as value of this variable. I tryed like this:
id = 'foo'
value = 'This is the value.'
eval "$#{id} + ' = ' + #{value}" # -> $id = 'This is the value.'
But this is not working. What's wrong? Is there a better/faster way?
greetings
Dirk Einecke