Subject: | Wrong example with OO_create_arg |
The documentation in
http://search.cpan.org/~jacquelin/RRDTool-Creator-0.9/lib/RRDTool/Creator.pm#create
shows one can use this:
@args = $creator->compile() ;
# possible manual modification on @args here...
$creator->create(-filename => "/tmp/15s.rrd", -OO_create_arg =>
\@args) ;
However, in Creator.pm in sub create all parameters with leading - get
lowercased. This means that any modification made to the argument array
gets lost.
It took me quite some time to figure out, I should use this instead:
$creator->create(-filename => "/tmp/15s.rrd", OO_create_arg => \@args) ;