in reply to Re: How to get code of the calling function or object
in thread How to get code of the calling function or object

Why not using B::Deparse::coderef2text directly?

I don't know if it was already mentioned, but that's only a backengineering of the code after constant folding and not the original source.

IIRC it should be possible to derive the linenumer and filename of the sub's definition. (UPDATE:see here)

Cheers Rolf