in reply to Using the Variable Name from an Array
Learn about proper references (perlref, perlreftut, perldsc, perllol), and hashes (perldata, perlintro). You're asking about how to do a thing because you are unaware of a better thing to do. Symbolic references are possible (and the reading I linked to will even show you how), but there are vastly better ways to do what you want using hashes, and first-class references.
Dave
|
---|
In Section
Seekers of Perl Wisdom