in reply to Re^2: Simple Mouse/Moose question
in thread Simple Mouse/Moose question
the second method is called via the modifier "after" which guarantees do_n() already happened.
Where do you see do_n assigning anything to "n"? As I explained, "after do_n already happened" is too soon. The "trigger" is "as soon as it returns".
$self->{n} = sub { my ($self) = @_; my $rv = $self->do_n(); $self->do_n2(); # Too soon return $rv; }->($self);
|
|---|