develooper Front page | perl.perl6.users | Postings from September 2017

Who called me?

Thread Next
From:
ToddAndMargo
Date:
September 13, 2017 23:56
Subject:
Who called me?
Message ID:
4002e0d0-653a-e681-d50d-6b1fc3b66378@zoho.com
Hi All,

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?

Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About