Hacker News new | ask | show | jobs
by rurban 3213 days ago
You are speaking with the Perl expert :) glad to help. Positions are stored in COP's only, you need to get them dynamically via the API. Some blocks do have wrong or bad line ranges, yes.
1 comments

I know. I am a long-time fan of your Perl work. And I know how to get them dynamically via an API which is done for example in https://metacpan.org/pod/Devel::Trepan::Deparse

What I don't know how to do, if you could help is register in Perl that I want my routine called when Perl hits an error, so that I can do the deparse and spit out a more detailed location message. Thanks!