Is it possible to pass variables between multiple calls to the around
MethodModier? example (that doesn\'t work but hopefully conveys what I want to do)
<
Use an instance variable:
$self->{value} = get_value;
...
my $value = $self->{value};
(See question commments for an actual answer. I'm just reiterating it here, so I can accept an answer, thanks to:
)
What you are trying to do don't have logic.
"An around modifier receives the original method as its first argument, then the object, and finally any arguments passed to the method."
https://metacpan.org/pod/Moose::Manual::MethodModifiers#BEFORE-AFTER-AND-AROUND