in reply to storing variable names in an array

The hash suggestions above are good ones .. for reasons not to use other 'solutions', see this thread: Using a scalar as an array name
(and there's been a couple/few nodes since that one, too, on the same topic but i don't have them handy)