Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Variable Names and Referencesby chakram88 (Pilgrim) |
on Mar 09, 2007 at 15:52 UTC ( [id://603996]=perlquestion: print w/replies, xml ) | Need Help?? |
chakram88 has asked for the wisdom of the Perl Monks concerning the following question:
Oh revered monks:
I know I'm missing something silly, but despite reading the Camel References chapter till I'm blurry, and reading the perlref tutorial I am stumped. I understand hard references wrt using a variable name as a variable. But, if I want to create the variable name on the fly, I can't seem to get the refernce right: outputs:
I've tried multiple levels of ref/deref (i.e. \\\\$var ... $$$$$ref) but still have the same problem. What would be the proper way to reference these variables?
Back to
Seekers of Perl Wisdom
|
|