I'd like to figure out how to construct the name of a variable using two or more variable names.
lets say $variable1 = whee
and $variable 2 = fun
I'd like to construct a variable variable named "$wheefun"
If I try something like:
I do not get 'foo' from $wheefun, I get nothing. I don't think I have the right syntax, if it's possible at all. Not sure if the period separator works on the left side of a statement like that.
What I am doing is making a function where we build the variable name from two different variables, assign it a value from a third variable, and then using GLOBAL to make it global when I'm done. I'm doing this to take some existing variables and appending a suffix onto their name, and the suffix is determined by another variable.
There's another way I can get around it, but the cleanest, most elegant solution would involve assembling a variable name from multiple variables.
--Mike