[Techtalk] Perl Frustration
Jeff Dike
jdike at addtoit.com
Thu Oct 30 23:34:35 EST 2003
kmactane at GothPunk.com said:
> I want to declare a set of variables inside a loop, and have them be
> accessible to the rest of the program. It's not known until run-time
> just how many of these variables there are, or what their names will
> be. (They may be acquired from user input, or from a configuration
> file.)
Why are you insisting that they be actual perl variables? Much more pleasant
would be a hash in which each configuration variable is a key.
Jeff
More information about the Techtalk
mailing list