in reply to Variable variable names

Use a hash. A hash key can be just about any name you please, and the value can be any scalar value (including a reference).

Any time you're tempted to create a variable with a variable name, use a hash. It will save your hair, sanity, and marriage, even if you're not married. I promise.

The alternative is so Cthonically dangerous, I dare not even speak its name. Suffice it to say that when you know how to deal with the Perl equivalent of an octopus riding a unicycle, you will know when to use it.