Do you know where your variables are? | |
PerlMonks |
Re: variable through another variableby Juerd (Abbot) |
on Jan 26, 2002 at 17:01 UTC ( [id://141776]=note: print w/replies, xml ) | Need Help?? |
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}.)
In Section
Seekers of Perl Wisdom
|
|