arguelje has asked for the wisdom of the Perl Monks concerning the following question:
The part of my code that is suppossed to print the histogram is:
my $format = $my_graph->export_format; print header("image/$format"); binmode STDOUT; print $my_graph->plot(\@data)->$format();
I know that the code is performing very well the task on creating the histogram, but I have not able to print the histogram, but the server is giving me the following error, and I do not how to fix it:
Can't call method "gif" on an undefined value at C:/Apache/Apache2/cgi +-bin/histogram.pl line 86, <fh00001miniproject620.txt> line 113.
I did setup the server myself, I am using apache latest version, in an windows xp laptop. Also, I am using the latest version of ActivePerl from Active State.
If someone can help, I will really appreciate.
Jose.
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating a Histogram
by samizdat (Vicar) on Apr 19, 2006 at 12:19 UTC | |
|
Re: Creating a Histogram
by cdarke (Prior) on Apr 19, 2006 at 13:34 UTC | |
|
Re: Creating a Histogram
by Herkum (Parson) on Apr 19, 2006 at 13:50 UTC | |
|
Re: Creating a Histogram
by GrandFather (Saint) on Apr 19, 2006 at 10:31 UTC |