in reply to
how can a subroutine find out the name of it's caller?
Have a look at the caller function:
perldoc -f caller
Also, for logging purposes, the core
Carp
module has some useful functions to print out call stacks, etc.
Comment on
Re: how can a subroutine find out the name of it's caller?
In Section
Seekers of Perl Wisdom