I am trying to name variables in the following way:
$new = "foo"; $$new_bar = "twinkie"
so that a variable called $foo_bar is created, having the value of "twinkie".
Little help please?
$new = "foo"; ${$new_bar} = " twinkie";
Thanks, Kai.
It actually didn't work in the way you described, but it did work this way:
$new = "foo"; ${$new."_bar"} = "twinkie";
I never would have gotten it without your help.