NAME

Devel::MAT::Context - represent a single call context state

DESCRIPTION

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 = $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).

Devel::MAT::Context::SUB

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 @_ argument array.

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.

$sv = $ctx->code

Returns the SV containing the text string being evaluated.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>