more useful options | |
PerlMonks |
Re: create hash names dynamicallyby cdarke (Prior) |
on Jun 11, 2007 at 08:26 UTC ( [id://620439]=note: print w/replies, xml ) | Need Help?? |
As Corion said, you probably don't want to do that. You don't give any details of how you want to use these hashes, so it is difficult code that is useful. If you wanted an array of hashes from the array of numbers that you gave: You access the hashes, let's say the second hash with a key called 'key', like this: Much more elegant that creating dynamic variables.
In Section
Seekers of Perl Wisdom
|
|