![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Answer: variable through another variableby Juerd (Abbot) |
on Jan 26, 2002 at 17:01 UTC ( #141776=categorized answer: print w/replies, xml ) | Need Help?? |
Q&A > Data Structures > variable through another variable - Answer contributed by Juerd
That will work, but not under strict 'refs'. Symbolic references are considered bad practice (but you can't always avoid them).
Using a hash is better, and hashes are useable under strict 'refs': (You can remove quotes from hash keys that have no \W characters: $hash{testing}.)
|
|