No such thing as a small change | |
PerlMonks |
Re: Can I create hash dynamically by looping through an array? The hash name should be the array elementby choroba (Cardinal) |
on Jan 25, 2013 at 12:51 UTC ( [id://1015340]=note: print w/replies, xml ) | Need Help?? |
Yes, you can - if you are not using strict refs:
The common practice, though, is to use one hash instead, making the elements of the list the keys. You can then shorten the creation to
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|