in reply to GD::Graph Question

At the top of your script...try
use GD::Graph::lines;
The module documentation states that you need to use GD::Graph::moduleName;
Hope this helps,
Jason

Replies are listed 'Best First'.
Re: Re: GD::Graph Question
by johnirl (Monk) on Jul 16, 2002 at 14:44 UTC
    thats great

    but now I'm getting the error Can't call method "plot" on an undefined value at first.pl line 25.
    any ideas? Or does anybody know where I can find some examples?

      There is a slight error in the module documentation if you extract all of the snippets. Change your  $my_graph to just  $graph...you are calling the plot method on the graph object you have been creating.
      Also, if you just grabbed the module note that you will have to use the .png or .gd2 file types...the gifs no longer are supported as far as I know.
      -Jason
        Great Jason. Thanks!!