in reply to Re: Overriding 'static' methods of a perl package
in thread Overriding 'static' methods of a perl package
Parent::identify returns 'Parent' Child::identifiy returns nothing Parent::identify() returns 'Parent' Child::identify() generates an error (undefined subroutine)package Parent; sub identify { return name(); } sub name { return 'Parent'; } 1; package Child; use Parent; @ISA = qw(Parent); sub name { return 'Child'; } 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Overriding 'static' methods of a perl package
by Corion (Patriarch) on Sep 16, 2008 at 14:48 UTC | |
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 | |
|