in reply to Re: overridden and inheritance
in thread overridden and inheritance

my $class = ref $type || $type;

Nix that; you don't need it.

sub new { my $type = shift; # Call as: World->new (); my $class = ref $type || $type; return Hello::new ($class); }

You don't need that either. Just delete the whole thing.

# Now call up to get base class work done return $self->Hello::hi (' World' . $tail);

This is a lot better as:

return $self->SUPER::hi( ' World' . $tail );

... or even:

use SUPER; # ... return $self->SUPER( ' World' . $tail );