Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by rockyb (Beadle)
on Aug 15, 2012 at 06:21 UTC ( #987506=note: print w/ replies, xml ) Need Help??


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)
Re^7: Identifying a location with finer granularity than a line number (B::Concise)
by rockyb (Beadle) 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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987506]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-07 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls