Chad Granum


Devel::CallerStack::Level - Element in a CallerStack, represents a single caller level.


    my $level = Devel::CallerStack::Level->new( $depth );

    my $package = $caller->package;

    if ( $caller->package( $check )) {


$level = Devel::CallerStack::Level->new( $depth )

Create a n instance representing the caller at $depth.


Accessors are read only. When called without an argument the value will be returned. If there is an argument it will be treated as a check and return true or false. A check can be a scalar, a regex, or a coderef. In the case of a coderef, the value will be passed in as the only argument.

$arrayref = $level->args()

The list of args is not to be trusted. See for caveats of caller args. DO NOT MODIFY ANYTHING IN THE ARGS LIST


$bool = $level->check_ordered( @checks )

Check each attribute in order against the check at the same index, undefinded indexes in @check will not be checked. True if all checks are true.


Chad Granum


Copyright (C) 2010 Chad Granum

Devel-CallerStack is free software; Standard perl licence.

Devel-CallerStack is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.