Help for this page

Select Code to Download


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