in reply to Initializing a hash using a foreach loop
That is faster and tidier with a hash slice,
Keeping IAMNames and IAMIp synchronized in your configuration may be a maintainance problem for you.my %ServerStatus; @ServerStatus{split( /\|/, getIAMparameter('IAMIp'))} = map {[$_,'unknown']} split /\|/, gwtIAMparameter('IAMNames');
After Compline,
Zaxo
|
---|