FreeBSD.software
Home/devel/p5-Sub-Current

p5-Sub-Current

0.03devel

Get the current subroutine

Sub::Current makes available a function ROUTINE(), that returns a code reference pointing at the currently executing subroutine. In a special block (BEGIN, END, CHECK, INIT, and UNITCHECK in Perl 5.10) this function will return undef. Outside of a special block (that is, at the top level of a program) ROUTINE() will return undef as well.

$pkg install p5-Sub-Current
metacpan.org/release/Sub-Current
Origin
devel/p5-Sub-Current
Size
15.3KiB
License
ART10, GPLv1+
Maintainer
perl@FreeBSD.org
Dependencies
1 packages
Required by
0 packages

Dependencies (1)