in reply to substitution of variable within a variable

hmm, i should make the problem a bit more specific,

a variable name, $aword, is stored in an array within a character string, to access it i did:

foreach $containmentvar (@newvarwords) {
print $containmentvar;
}

---
I wanted to print the word stored in $aword, yes, i should have used single quotes for that, but i still dont know how to access it by doing a similar code to the above.

  • Comment on update: substitution of variable within a variable