maybe_next_method#

Tail-call the next implementation of the currently executing method if one exists; otherwise return quietly.

Synopsis#

sub DESTROY {
    my $self = shift;
    ...                      # cleanup
    $self->maybe::next::method;
}

Equivalent to $self->next::method(@_) if $self->next::can in the common case, but also works as the target of goto &maybe::next::method where the conditional Perl form does not. The usual reason to reach for it is a DESTROY or hook method where missing parent implementations are normal.