Hi all!
Is it possible to use strings joined together to reference a variable? Let me demonstrate what I would like to do...
$wonderFull = "The String I want to get at"; $var1 = "wonder" $var2 = "Full" $temp = $var1 . $var2
Now obviously that wont work as "." just joins things. I want temp to be set to the value of $wonderFull.
Is this even possible?
Thanks people,
M
The reason I want to do this is that I will have a large cgi script with many predefined open file handles. I want the user to select two values from pull down boxes on a web page and then by using these it will use the correct file handle. It could be done with lots of if statements but there must be a better way to do it?
In reply to Many strings make one variable? by heezy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |