lutus65 has asked for the wisdom of the Perl Monks concerning the following question:
New to GD:Graph. I have tried several examples from site to test module. All result in some unicode string. What is my problem? Thanks
#!/usr/bin/perl -w use 5.010; use strict; use warnings; use GD::Graph::bars; print"Hello world!\n"; my @data =([1,2,3,4],[5,3,8,9]); my $graph = GD::Graph::bars->new(400,300); $graph->set( x_label => 'X num', y_label => 'Y num', title => 'Test', ) or warn $graph->error; my $myimage = $graph->plot(\@data) or die $graph->error; print "Content-type: image/png\n\n"; print $myimage->png;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: gd::graph returns unicode
by kennethk (Abbot) on Jul 09, 2013 at 16:51 UTC | |
by lutus65 (Initiate) on Jul 09, 2013 at 17:05 UTC | |
|
Re: gd::graph returns unicode
by Khen1950fx (Canon) on Jul 09, 2013 at 19:43 UTC |