Perl

How to find out the name of the current method, and the name of your parent.

The caller function provides access to the call stack in Perl. In a list context, it returns your package information:

Perl – How to Find Out Who You Are and Who Your Caller Is

© The Paltering Grounds
CyberChimps