in reply to Re^2: Overriding 'static' methods of a perl package
in thread Overriding 'static' methods of a perl package
"You can't get there from here".
Unless you use "object notation", and call your methods with a class or object instance, no inheritance will work.
You could fake the stuff you want by trying AUTOLOAD trickery but down that road lies so much sorrow I won't even tell you how to do it.
So you'll have to change Parent and Child in the way I outlined above.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Overriding 'static' methods of a perl package
by Anonymous Monk on Sep 16, 2008 at 15:18 UTC | |
by Corion (Patriarch) on Sep 16, 2008 at 15:37 UTC | |
by Anonymous Monk on Sep 16, 2008 at 16:07 UTC | |
by Fletch (Bishop) on Sep 16, 2008 at 16:16 UTC | |
by Anonymous Monk on Sep 16, 2008 at 17:43 UTC | |
|