Skip Menu |

This queue is for tickets about the RRDTool-Creator CPAN distribution.

Report information
The Basics
Id: 57660
Status: resolved
Priority: 0/
Queue: RRDTool-Creator

People
Owner: Nobody in particular
Requestors: brablc+bitcard.org [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.9
Fixed in: (no value)



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) ;
Well seen. This will be corrected in 0.10 Thank you Jacquelin Le Jeu 20 Mai 2010 08:10:28, brablc a écrit : Show quoted text
> 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) ;
release 0.10 created to solve that.