I want to create a variable whose name is the short string of another variable.
For example:
$a = 'foo';
$a will change with each line of a file it reads. I want my script to make $foo;
And then later in the file, $a might be equal to 'bar' at which point I want $bar to be created as a new variable.
How do I do this?