BSD Ports

devel/p5-Sub-Current 0.03 DragonFly

Get the current subroutine

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
7.6 KiB, 15.0 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlydevel/p5-Sub-Current0.03
FreeBSDdevel/p5-Sub-Current0.03
HardenedBSDdevel/p5-Sub-Current0.03
GhostBSDdevel/p5-Sub-Current0.03

Install

Binary package:

pkg install p5-Sub-Current

From DPorts:

cd /usr/dports/devel/p5-Sub-Current && make install clean

Dependencies

Run dependencies 1

No port depends on this one.