- or download this
sub doit {
my( $self, $a, $b ) = @_;
$self->{thing} += $a;
$self->{thing} *= $b;
}
- or download this
sub doit {
my( $self, $a, $b ) = @_;
...
$self->{afters}{'doit'}->( $self, $a, $b );
return @results;
}
- or download this
sub doit {
my( $self, $a, $b ) = @_;
...
## do some stuff after
return $self->{thing};
}
- or download this
package Parent;
use Moose;
...
In Parent after
In Child around after calling original
In Child after