Added devel/p5-Devel-Caller version 2.03

This provides a 'meatier' version of caller:

caller_cv($level)

    caller_cv gives you the coderef of the subroutine being invoked
    at the call frame indicated by the value of $level

caller_args($level)

    Returns the arguments passed into the caller at level $level

caller_vars( $level, $names ) =item called_with($level, $names)

    called_with returns a list of references to the original
    arguments to the subroutine at $level. if $names is true, the
    names of the variables will be returned instead

    constants are returned as undef in both cases

called_as_method($level)

    called_as_method returns true if the subroutine at $level was
    called as a method.
This commit is contained in:
abs 2008-07-14 09:24:50 +00:00
parent f5b8ed1c47
commit ad406c8d73
3 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,23 @@
This provides a 'meatier' version of caller:
caller_cv($level)
caller_cv gives you the coderef of the subroutine being invoked
at the call frame indicated by the value of $level
caller_args($level)
Returns the arguments passed into the caller at level $level
caller_vars( $level, $names ) =item called_with($level, $names)
called_with returns a list of references to the original
arguments to the subroutine at $level. if $names is true, the
names of the variables will be returned instead
constants are returned as undef in both cases
called_as_method($level)
called_as_method returns true if the subroutine at $level was
called as a method.

View file

@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.1.1.1 2008/07/14 09:24:50 abs Exp $
DISTNAME= Devel-Caller-2.03
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Devel/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://search.cpan.org/perldoc?Devel::Caller
COMMENT= Meatier versions of caller
DEPENDS+= p5-PadWalker>0.08:../../devel/p5-PadWalker
USE_LANGUAGES= c
PERL5_PACKLIST= auto/Devel/Caller/.packlist
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2008/07/14 09:24:50 abs Exp $
SHA1 (Devel-Caller-2.03.tar.gz) = 12a2c1991db045c5818413e689498782737c3b99
RMD160 (Devel-Caller-2.03.tar.gz) = 5753f7068ae262fca493f0fe3b5cbed64214cc6e
Size (Devel-Caller-2.03.tar.gz) = 5497 bytes