Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 perusing the Monastery: (14)
As of 2014-07-23 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (145 votes), past polls