Think about Loose Coupling | |
PerlMonks |
Re: Dynamically allocating variablesby wog (Curate) |
on Dec 02, 2001 at 05:28 UTC ( [id://128944]=note: print w/replies, xml ) | Need Help?? |
Instead of trying to use variable as variable names (as you are suggesting), you should use data structures. See also perldsc. (update: Of course, Fastolfe beat me to referencing this document.)
There is a reason that perl does not let you use variables as variable names under strict; it is not an arbitrary requirement. See this set of articles for reasons why and examples of code transformed from using a variable as a variable name to not doing so.
In Section
Seekers of Perl Wisdom
|
|