in reply to Re: draw a graph
in thread draw a graph
... my best guess is that the server has not permissions to open graph.png for output ...It's also a good idea to let yourself know about such problems as they develop. Something along these lines might be informative:
my $filename = 'graph.png'; open my $fh, '>', $filename or die "opening $filename: $!"; binmode $fh; print $fh $mygraph->plot(\@data)->png or die "writing $filename: $!"; close $fh or die "closing $filename: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: draw a graph
by Bloodnok (Vicar) on Jul 31, 2009 at 15:30 UTC |