Why would you need that? Wouldn't you usually already know the name of the method when you define it?
sub foo { warn "foo" } __PACKAGE__->foo();
for my $n (qw"foo bar") { *$n = sub { warn $n } } __PACKAGE__->foo();
AUTOLOAD { warn $AUTOLOAD } __PACKAGE__->foo();
In reply to Re: Moose and caller() for current method
by ambrus
in thread Moose and caller() for current method
by ait
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |