On Wed, 2003-12-17 at 14:04, Ed Christian wrote: > Dan Anderson wrote: > > I am trying out GD::Graph, which is a CPAN module that creates a > > method new, and then for each graph type inherits that new method (I > > think -- I had to open the code). > > > > So I tried calling: > > > > my $graph = GD::Graph::bars->new(400, 600); > > > > And I get the error: > > > > Can't locate object method "new" via package "GD::Graph::bars" > > (perhaps you forgot to load "GD::Graph::bars"?) at - line 12. > > > > Stupid question: did you remember to > > use GD::Graph::bars;
Nope. Thanks for your help. I really need another cup of caffeine..erm...coffee. -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>