- or download this
my @keys = keys %{$nodemetrics{'server1'}};
- or download this
$ perl scratch.pl
[...]
...
}
[...]
- or download this
my @system_attributes = qw(memory cpu disk network);
...
my $hashref = $nodemetrics{'server1'};
@$hashref{@system_attributes}=@data;