http://www.perlmonks.org?node_id=712310


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.