I have a string, which has been created at runtime. I want to use this string as a variable to store some data into it. How can I convert the string into a variable name?
You can use eval() for this provided that you've declared your variable first:
eval()
>> foo = [] >> eval("foo")[1] = "bar" >> foo[1] => "bar"
Here are the docs.