On Wed, Sep 13, 2017 at 7:56 PM, ToddAndMargo <toddandma...@zoho.com> wrote:
> I am trying to convert this from Perl 5: > > my $WhoCalledMe = ( caller(0) )[1]; > > I use it inside a sub to determine who called the sub. > > How is this done in P6? > You want the callframe method. Note that it can be a bit more complex than perl 5's caller because there are more things that act like call frames. https://docs.perl6.org/routine/callframe (but most of the actual documentation is at https://docs.perl6.org/type/CallFrame). -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net