Subject: | examples trouble, Can't locate object method "add_group" via package "SVG::Graph", Can't locate SVG/Graph/Group. |
Can't locate object method "add_group" via package "SVG::Graph" at histo.pl line 11.
histo.pl besides needing an input file which can be generated with
perl -le"print qq;#stat:mean\t20;;print qq;$_\t;,int(rand 80) for 1 .. 40"
needs to have (original lines #commented out)
my $parentgroup = $graph->add_frame;#my $parentgroup = $graph->add_group;
my $statgroup = $parentgroup->add_frame;#$parentgroup->add_group;
my $bargroup = $parentgroup->add_frame;#$parentgroup->add_group;
wedge.pl barfs with Can't locate SVG/Graph/Group.pm in @INC
and that's because SVG::Graph::Group is defined in SVG::Frame
which is wrong :)