in reply to Finding the name of the target of a coderef
You may also be interested in Can an anonymous sub in a hash value know its key?.