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
In reply to Re: Strict, cant use string as hash ref
by roboticus
in thread Strict, cant use string as hash ref
by westy032001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |