![]() |
|
"be consistent" | |
PerlMonks |
Re: dynamically generated array variableby ikegami (Patriarch) |
on Jan 02, 2007 at 20:36 UTC ( #592638=note: print w/replies, xml ) | Need Help?? |
Your config file parser simply creates those variables instead of allowing to query them? To work with this bad design, you'll need to use symbolic references.
Or if a reference is fine:
Update: I forgot to mention the above only works if @hosta is a package variable, not a my variable.
In Section
Seekers of Perl Wisdom
|
|