plasmatwin
Programmer
Hi,
I have my configuration loaded into a hash called %config, I want to check that hash for the presence of certain mandatory values. It is currently a hash of two hashes, I want to make another temporary hash of two hashes with some default values in it and then loop through each value of the temporary hash and check that there is a value for it in the main hash called %config (and if there isn't a value for it, create it with the default value).
I'm in the dark about this one, so can anyone help me out?
Thanks,
Graham
I have my configuration loaded into a hash called %config, I want to check that hash for the presence of certain mandatory values. It is currently a hash of two hashes, I want to make another temporary hash of two hashes with some default values in it and then loop through each value of the temporary hash and check that there is a value for it in the main hash called %config (and if there isn't a value for it, create it with the default value).
I'm in the dark about this one, so can anyone help me out?
Thanks,
Graham