Re: Why does my inheritance hierarchy get screwed up?

2006-02-23 Thread Johannes Ernst
Thanks everybody pointing out that B is an internal Perl namespace. Duh! I will refrain from comment on whoever made that choice ... In addition, I realized that the order in which 'use' and 'use fields' statements are made is very much significant; if one gets it wrong, mysterious things

Why does my inheritance hierarchy get screwed up?

2006-02-22 Thread Johannes Ernst
[Blogged about it here: http://netmesh.info/jernst/Technical/perl- inheritance-problem.html ] There are three very simple classes in the following code: C is a subclass of B, which is a subclass of A. If I try to instantiate B (see last two lines of the code below), I'm getting this

Re: Why does my inheritance hierarchy get screwed up?

2006-02-22 Thread Tom Phoenix
On 2/22/06, Johannes Ernst [EMAIL PROTECTED] wrote: If I try to instantiate B (see last two lines of the code below), I'm getting this output: Point B: Exporter Can't locate object method new via package B at madness.pl line 23. Did you know that B is a package name used

Re: Why does my inheritance hierarchy get screwed up?

2006-02-22 Thread Hans Meier (John Doe)
Johannes Ernst am Donnerstag, 23. Februar 2006 00.19: [Blogged about it here: http://netmesh.info/jernst/Technical/perl- inheritance-problem.html ] There are three very simple classes in the following code: C is a subclass of B, which is a subclass of A. If I try to instantiate B (see last