in reply to Re: A caller() by any other name
in thread A caller() by any other name

I think Perl doesn't track if subroutines were called as methods.

You can root around in the optree and get a pretty good idea, but it's complicated and slow and non-deterministic in a couple of edge cases.