
FishMonger
Veteran
Sep 27, 2011, 8:44 AM
Views: 1035
|
|
Re: [adiab] Adding element to a hash
|
|
|
Since you're adding a new array element, you need to use push and since I don't like long lines, I'll break it up like this:
push @{ $graphs{memory}{datasrc} }, { name => "bytes.$port", draw => 'LINE', label => 'Current Bytes Used', min => 0 };
(This post was edited by FishMonger on Sep 27, 2011, 8:45 AM)
|