In Perl 6, how can I get the name of a function / routine from my body at runtime?
For instance,
sub foo { say "My name is: " ~ <WHAT-API-HERE??> ; } ... foo();
The above code should print:
My name is: foo
I looked at places like MOP , FAQ, and Functions .
Harry source share