I'm trying to parse a database, and assign a string value as the name of a hash... I'm not sure how to format such a request in perl.

To be clear, I'm trying to make a hash such as %Jupiter using a variable string $planet. Any advice would be much appreciated.

Thanks!

I'm not sure if you can actually specify the name of the hash with content contained in a variable, but something you may be interested in checking out is "annonymous hashes"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.