in reply to Re^2: Inheritance - calling parent constructor
in thread Inheritance - calling parent constructor
instead ofmy $self = $class->Parent::new(...);
my $self = $class->SUPER::new(...);
And you might even have to in some weird situations (although use mro 'c3'; would probably be a better fix).
But using Parent is redundant. You already specified it's the parent class. To use it here is to needlessly hardcode a value. Nothing good can come of that.
|
|---|