in reply to Finding the name of a code ref

It's a lot easier than that; see Re: How to de-reference a coderef? (B tricks).