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 internally by Perl? I think
that's the problem here. Change B to an unused package name, and
everything seems to work. Detecting package name collisions like this
is still an unsolved problem, alas, so that's one of the errors that
Perl can't warn you about.

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to