Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
thje following is the error i recieve Can't call method "png" on an undefined value at /var/www/cgi-bin/Findit.cgi line 131. line 131 is marked on the code above this function is to be called multiple times..sub graph { my $graph = new GD::Graph::lines(500,350); my $gd_image = $graph->plot(\@data); # print header(-type => "image/png"); # binmode STDOUT; # print $gd_image->png; open (TMPFILE,">file.png"); binmode TMPFILE; 131 print TMPFILE $gd_image->png; close TMPFILE; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: save a png image
by Tomte (Priest) on Mar 09, 2004 at 16:07 UTC | |
by Anonymous Monk on Mar 09, 2004 at 16:28 UTC | |
by Anonymous Monk on Mar 09, 2004 at 19:00 UTC | |
|
Re: save a png image
by Juerd (Abbot) on Mar 09, 2004 at 16:36 UTC | |
by Anonymous Monk on Mar 09, 2004 at 17:20 UTC |