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;