rwadkins has asked for the wisdom of the Perl Monks concerning the following question:
I tried to do something that didn't work.
I have a package Foo and a package Bar. Bar ISA Foo. Foo defines method Baz. I want to call Bar->Baz and as part of Baz' steps call Foo->Baz. However, Foo->Baz doesn't seem to exist. It's as if, through inheritance, Baz gets slipped into the symbol table only at the lowest level.
I'm trying to get at (lexically scoped?) data defined in each package along the inheritance chain. Is this possible or even a good idea?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recursion up The Inheritance Chain
by keszler (Priest) on Dec 18, 2009 at 17:43 UTC | |
by rwadkins (Initiate) on Dec 18, 2009 at 17:54 UTC | |
by keszler (Priest) on Dec 18, 2009 at 17:58 UTC | |
by rwadkins (Initiate) on Dec 18, 2009 at 19:09 UTC | |
by zwon (Abbot) on Dec 18, 2009 at 19:37 UTC | |
by keszler (Priest) on Dec 18, 2009 at 20:30 UTC | |
|
Re: Recursion up The Inheritance Chain
by WizardOfUz (Friar) on Dec 18, 2009 at 17:54 UTC | |
|
Re: Recursion up The Inheritance Chain
by WizardOfUz (Friar) on Dec 19, 2009 at 11:36 UTC |