cool, but this examples shows how write a "small" and "declared" hash, i have a big one with the structure i told you with around 5000 keys with his values.
So i need to way to give something like a :
foreach $control_key (%my_huge_hash)
and use the $control_key to walk in the hash and make the xml.
In all the examples i saw, all the FAQs and tutorials told me how i can do that with a small hash (with the values declared). I have in every hash key a variable that imports from a while loop that reads a text file to this hash .