> On 22 May 2018, at 09:41, ToddAndMargo <toddandma...@zoho.com> wrote: > > On 05/21/2018 11:21 PM, Siavash wrote: >> https://www.nntp.perl.org/group/perl.perl6.users/2017/03/msg3423.html >> On 2018-05-22 06:04:47 GMT, ToddAndMargo wrote: >>> Hi All, >>> >>> I need to know the name of the subroutine I am in. >>> >>> This is the way I use to do it in Perl 5: >>> >>> (my $Name = (caller(0))[3] ) ~~ s{.*::}{}; >>> >>> How do I do it in Perl 6?
FWIW, for the CPAN Butterfly Plan I have made P5caller, a Perl 6 module that attempts to mimic the semantics of P5 caller() as much as possible: http://modules.perl6.org/dist/P5caller:cpan:ELIZABETH Liz