in reply to Re^5: Identifying a location with finer granularity than a line number (B::Concise)
in thread Identifying a location with finer granularity than a line number

Ah, yes. Ok. So now how can I get a CODE ref from the call stack of a running Perl program?

Independent of this particular problem, it's something I'd want to be able to do. I can't remember the details now but I recall needing a CODE ref (as opposed to a in "context") in conjunction with the module Scope::Upper

  • Comment on Re^6: Identifying a location with finer granularity than a line number (B::Concise)

Replies are listed 'Best First'.
Re^7: Identifying a location with finer granularity than a line number (B::Concise)
by rockyb (Scribe) on Apr 13, 2014 at 23:19 UTC

    For the record, recent versions — 0.08 and later — of Devel::Callsite gives the OP address that you are stopped at or of a caller in the call stack. (The address of the OP is a child of the COP instruction, but this isn't an important distinction.)