No Perl, usando Moo, você pode implementar aroundsubs, que envolvem outros métodos em uma classe.
around INSERT => sub {
my $orig = shift;
my $self = shift;
print "Before the original sub\n";
my $rv = $orig->($self, @_);
print "After the original sub\n";
};
Como esse comportamento pode ser implementado no Raku , de preferência usando um role?