in reply to Perl Inheritance & module variables
One way would be for the child to override GetVersion(). Then a method in the parent can call $self->GetVersion() and get the child's version (if $self is actually an instance of the child).
Another way might be through package variables, but I don't recommend that.
|
---|
In Section
Seekers of Perl Wisdom