30 Aug 2022 14:43:33 UTC
- Distribution: Devel-MAT
- Module version: 0.48
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (8)
- Testers (235 / 37 / 5)
- KwaliteeBus factor: 1
- 55.56% Coverage
- License: perl_5
- Perl: v5.14.0
- Activity24 month
- Download (137.2KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- COMMON METHODS
Devel::MAT::Context- represent a single call context state
Objects in this class represent a single level of state from the call context. These contexts represent function calls between perl functions.
$gimme = $ctx->gimme
Returns the gimme value of the call context.
$file = $ctx->file $line = $ctx->line $location = $ctx->location
Returns the file, line or location as (
FILE line LINE).
Represents a context which is a subroutine call.
$cv = $ctx->cv
Returns the CV which this call is to.
$args = $ctx->args
Returns the arguments AV which represents the
$olddepth = $ctx->olddepth
Returns the old depth of the context (that is, the depth the CV would be at after this context returns).
$depth = $ctx->depth
Returns the actual depth of the context. This is inferred at load time by considering the
olddepthof the next inner-nested call to the same CV, or from the actual
depthof the CV is no other call exists.
Represents a context which is a block
Represents a context which is a string
$sv = $ctx->code
Returns the SV containing the text string being evaluated.
Paul Evans <firstname.lastname@example.org>