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; }
In reply to save a png image by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |