$aword = "foo";
$containmentvar = '$aword';
print $containmentvar;
---
What I want the code to do is print the word foo from the scalar variable $containmentvar that is a character string containing the variable name $aword. The above code won't do that. How could I make it possible with a code similar to the above?
In reply to substitution of variable within a variable by TecoDaN
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |