Re: Nevermind WAs: Re: Problems with Inheritance in GD::Graph

2003-12-17 Thread drieux
On Dec 17, 2003, at 11:06 AM, Dan Anderson wrote:

Nevermind.  I'm an idiot.  I fogot to use GD::Graph::bars.  :: hits 
head
against wall::
Minor technical nit,
you should hire a professional hitPerKin
to do that... Respect the Guild System!!!
major dumb question, but was the error message

	"unable to find new method"

and/or the one where it asserts

	"did you forget to load foo::Bar::Baz..."

that normally comes when one starts with

use warnings;
use strict;
or did I miss seeing that in the thread 

ciao
drieux
---

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: Problems with Inheritance in GD::Graph

2003-12-17 Thread Dan Anderson
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]
 




Nevermind WAs: Re: Problems with Inheritance in GD::Graph

2003-12-17 Thread Dan Anderson
Nevermind.  I'm an idiot.  I fogot to use GD::Graph::bars.  :: hits head
against wall::

Dan


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: Problems with Inheritance in GD::Graph

2003-12-17 Thread Bob Showalter
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.
> 
> Now I know everything was installed.  And I cracked the source to find
> that GD::Graph::bars should inherit new, but perl seems confused.
> 
> What am I doing wrong?

Do you have "use GD::Graph::bars" in your program? A plain "use GD::Graph"
is not sufficient.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: Problems with Inheritance in GD::Graph

2003-12-17 Thread Ed Christian
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;

?

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]