![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Re: Re: Re: Runtime Hash Variable accessby Tomte (Priest) |
on Mar 08, 2004 at 15:03 UTC ( #334832=note: print w/replies, xml ) | Need Help?? |
What Juerd tries to explain, IMVHO, is: If you feel the need to access variables whose names are unbeknownst to you, you should use a hash, whose name is known to you, with these unkown names as keys. There are very few situations where it's considered good design to use symbolic references (e.g. on-the-fly generation of objects implementing a known interface), and accessing variables is almost never one of them. Just my $0.02...
regards, Hlade's Law:
If you have a difficult task, give it to a lazy person --
In Section
Seekers of Perl Wisdom
|
|