http://www.perlmonks.org?node_id=978951


in reply to Re^2: Using Variable Value as Variable Name
in thread Using Variable Value as Variable Name

A hash is a much more natural way of dealing with this, and IMHO one of Perl's greatest strengths (the other being regular expressions). You could even use lock_keys from Hash::Util to protect yourself from typos.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.