in reply to Strict, cant use string as hash ref
If you use moritz' solution, be sure to examine how you're using your hash. If you find yourself breaking up your current key on the '_' character later on, you might find it better to go ahead and have another key level or two, like:
my ($server,$attribute) = ('jwesvsf7', 'CPU_USER'); $hash{$attribute}{$server}{key} = "value";
...roboticus
|
|---|