in reply to You cannot pass args when calling inner() in Moose?
for my $item (@item) { $self->i(++$i); inner(); }
Update: Arunbear's code below works, though I'm a little thrown. This behavior is not documented in Moose::Cookbook::Basics::Recipe6 or INNER_AND_AUGMENT in Moose::Manual::MethodModifiers. Arunbear's cited source does not provide particular insight for me, but I'm no Moose expert.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: You cannot pass args when calling inner() in Moose?
by metaperl (Curate) on Jul 21, 2011 at 16:57 UTC | |
by kennethk (Abbot) on Jul 21, 2011 at 17:23 UTC | |
by metaperl (Curate) on Jul 21, 2011 at 19:03 UTC | |
|
Re^2: You cannot pass args when calling inner() in Moose?
by stvn (Monsignor) on Jul 22, 2011 at 02:25 UTC |