BSD Ports

devel/p5-Sub-Name 0.28,1 MidnightBSD

Module to assign new names to Perl subroutines

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl
Categories
devel, perl5

Description

The subname() function exported by this module allows one to assign new names to Perl subroutine. This is different from glob-assignment, since the name is only used for informational purposes (caller, Carp, etc.).

Note that for anonymous closures (subs that reference lexicals declared outside the sub itself) one can name each instance of the closure differently, which can be very useful for debugging.

In the other systems

The newest version among them is 0.28, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/p5-Sub-Name0.28,1 newestno data-[email protected]-
FreeBSDdevel/p5-Sub-Name0.28,1 newestnone known-[email protected]-
OpenBSDdevel/p5-Sub-Name0.28 newestno data-Alexander Bluhm <[email protected]>-
NetBSDdevel/p5-Sub-Name0.28nb2 newestnone known-[email protected]2026-07-16
DragonFlydevel/p5-Sub-Name0.28,1 newestnone known-[email protected]-
HardenedBSDdevel/p5-Sub-Name0.28,1 newestno data-[email protected]-
GhostBSDdevel/p5-Sub-Name0.28,1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install p5-Sub-Name

From mports:

cd /usr/mports/devel/p5-Sub-Name && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Sub-Name>0:devel/p5-Sub-Name

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 3
  • %%SITE_ARCH%%/Sub/Name.pm
  • %%SITE_ARCH%%/auto/Sub/Name/Name.so
  • %%PERL5_MAN3%%/Sub::Name.3.gz
distinfo 1
FileSizeSHA256
Sub-Name-0.28.tar.gz15880339c53f6b3b02cbc73176564413b51d3c0f375f9760983fd579c27f558b169cfc
Master sites 1
  • CPAN