Devel::MAT::Context(3pm)

Devel::MAT::Context3pm

Represent a single call context state

Overview

Objects in this class represent a single level of state from the call context. These contexts represent function calls between perl functions.

Common methods

gimme

   $gimme = $ctx->gimme;

Returns the gimme value of the call context.

file

line

location

   $file = $ctx->file;
   $line = $ctx->line;
   $location = $ctx->location;

Returns the file, line or location as ("FILE line LINE").

Devel::MAT::Context::SUB

Represents a context which is a subroutine call.

cv

   $cv = $ctx->cv;

Returns the CV which this call is to.

args

   $args = $ctx->args;

Returns the arguments AV which represents the @_ argument array.

olddepth

   $olddepth = $ctx->olddepth;

Returns the old depth of the context (that is, the depth the CV would be at after this context returns).

depth

   $depth = $ctx->depth;

Returns the actual depth of the context. This is inferred at load time by considering the "olddepth" of the next inner-nested call to the same CV, or from the actual "depth" of the CV is no other call exists.

Devel::MAT::Context::TRY

Represents a context which is a block "eval {}" call.

Devel::MAT::Context::EVAL

Represents a context which is a string "eval EXPR" call.

code

   $sv = $ctx->code;

Returns the SV containing the text string being evaluated.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Paul Evans <[email protected]>

From libdevel-mat-perl 0.53-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.