jdhedden has asked for the wisdom of the Perl Monks concerning the following question:
When run, it produces the following error message:#!/usr/bin/perl use strict; use warnings; package aaa; { our @ISA = 'bbb'; sub new { return bless {}, shift; } } package bbb; { our @ISA = 'aaa'; sub new { return bless {}, shift; } } package main; my $obj = bbb->new;
Recursive inheritance detected while looking for method '()' in package 'bbb'.From other testing I did, I determined that the method being referred to in the error message is not DESTROY even though the error occurs when the object goes out of scope.
Further, I determined that the method name is not an empty string. Perl is literally looking for a method called '()'.
The question is: Just what is this strange method '()'?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What is method () ?
by diotalevi (Canon) on Oct 05, 2005 at 16:19 UTC | |
|
Re: What is method () ?
by Perl Mouse (Chaplain) on Oct 05, 2005 at 16:01 UTC | |
|
Re: What is method () ?
by revdiablo (Prior) on Oct 05, 2005 at 17:53 UTC | |
by jdhedden (Deacon) on Oct 05, 2005 at 20:08 UTC | |
by revdiablo (Prior) on Oct 05, 2005 at 22:30 UTC | |
by demerphq (Chancellor) on Oct 06, 2005 at 06:48 UTC | |
by Perl Mouse (Chaplain) on Oct 06, 2005 at 08:31 UTC | |
by demerphq (Chancellor) on Oct 06, 2005 at 08:44 UTC | |
by Roger_B (Scribe) on Oct 06, 2005 at 12:44 UTC | |
|
Re: What is method () ?
by ikegami (Patriarch) on Oct 05, 2005 at 16:11 UTC |