Is it possible to pass an argument to a triggered method?
I'm not sure about Moose, but in general this is called Currying (or "partial application"). The simplest form in Perl is shown in the other reply, but a quick search shows several modules that claim to make this easier (disclaimer: I haven't used any of them).
In reply to Re^2: Moose not passing object to triggered method
by Anonymous Monk
in thread Moose not passing object to triggered method
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |