sub hey { &waka(((caller(0))[3]=~m/::(\w+)$/)); } sub waka { my $who = shift; print "$who called waka\n"; }
In reply to Re^2: Moose and caller() for current method
by ait
in thread Moose and caller() for current method
by ait
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |