in reply to hash array the key as variable name and value as value

As moritz already mentioned, that's usually a bad idea.

There is a document available which tries to explain that more detailled:

  • Comment on Re: hash array the key as variable name and value as value