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 )) { ... }
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.
The list of args is not to be trusted. See http://perldoc.perl.org/functions/caller.html for caveats of caller args. DO NOT MODIFY ANYTHING IN THE ARGS LIST
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 exodist7@gmail.com
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.
To install Devel::CallerStack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::CallerStack
CPAN shell
perl -MCPAN -e shell install Devel::CallerStack
For more information on module installation, please visit the detailed CPAN module installation guide.