dilip.renkila has asked for the wisdom of the Perl Monks concerning the following question:
Please help me?HASH: %update = { '2'=>{ '25' => { 'i' => 5000000, 'o' => 5000000 }, '4' => { 'o' => 5000000, 'i' => 5000000 } } }; CODE: foreach my $i (keys %update) { print Dumper($i); my $rrdfile="$pwd/$i.rrd"; my $rrd = RRD::Editor->new(); $string=(); $updateRRD="N"; foreach my $j(keys %{$update{$i}}) { foreach my $k(keys %{$update{$j}}) { $updateRRD=$updateRRD.":".$update{$i}{$j}{$k}; } } print Dumper ($updateRRD); $rrd->update($updateRRD); } Error: expected 9 data source readings (got 0) from N
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sorting hash of hashes
by Athanasius (Archbishop) on Oct 28, 2015 at 13:38 UTC | |
by dilip.renkila (Initiate) on Oct 28, 2015 at 22:50 UTC | |
by Athanasius (Archbishop) on Oct 29, 2015 at 02:58 UTC | |
|
Re: sorting hash of hashes
by Laurent_R (Canon) on Oct 28, 2015 at 14:57 UTC | |
|
Re: sorting hash of hashes
by GotToBTru (Prior) on Oct 28, 2015 at 12:41 UTC | |
|
Re: sorting hash of hashes
by shadowsong (Pilgrim) on Oct 28, 2015 at 22:56 UTC |