Skip Menu |

This queue is for tickets about the SVGGraph-Pie CPAN distribution.

Report information
The Basics
Id: 76977
Status: resolved
Priority: 0/
Queue: SVGGraph-Pie

People
Owner: Nobody in particular
Requestors: cpan [...] punch.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.05
Fixed in: (no value)



Subject: documentation fixes
The documentation uses "my @values = [ .. ]" when it should be "my @values = ( .. )" The attached patch fixes this.
Subject: documentation_fixes.patch
diff -Naur SVGGraph-Pie-0.05.orig//lib/SVGGraph/Pie.pm SVGGraph-Pie-0.05/lib/SVGGraph/Pie.pm --- SVGGraph-Pie-0.05.orig//lib/SVGGraph/Pie.pm 2003-07-27 18:34:34.000000000 -0700 +++ SVGGraph-Pie-0.05/lib/SVGGraph/Pie.pm 2012-05-03 16:34:33.000000000 -0700 @@ -219,7 +219,7 @@ use strict; use SVGGraph::Pie; - my @values = [ + my @values = ( {value => 11, color => 'red'}, {value => 23, color => 'rgb(200,0,0)'}, {value => 39, color => 'rgb(150,0,0)'}, @@ -229,7 +229,7 @@ {value => 60, color => 'rgb(0,0,100)'}, {value => 12, color => 'rgb(0,0,150)'}, {value => 39, color => 'rgb(0,0,200)'}, - ]; + ); my $svggraph = SVGGraph::Pie->new;
Thank you for your report. I applied this patch to v0.06.