BSD Ports

devel/p5-namespace-clean 0.27 DragonFly

Keep imports and functions out of your namespace

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

Description

When you define a function, or import one, into a Perl package, it will naturally also be available as a method. This does not per se cause problems, but it can complicate subclassing and, for example, plugin classes that are included via multiple inheritance by loading them as base classes.

The "namespace::clean" pragma will remove all previously declared or imported symbols at the end of the current package's compile cycle. Functions called in the package itself will still be bound by their name, but they won't show up as methods on your class or instances.

In the other systems

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

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-namespace-clean0.27 newestnone known-[email protected]-
FreeBSDdevel/p5-namespace-clean0.27 newestnone known-[email protected]-
OpenBSDdevel/p5-namespace-clean0.27p0 newestno data-The OpenBSD ports mailing-list <[email protected]>-
NetBSDdevel/p5-namespace-clean0.27nb10 newestnone known-[email protected]2026-07-16
MidnightBSDdevel/p5-namespace-clean0.27_1 newestno data-[email protected]-
HardenedBSDdevel/p5-namespace-clean0.27 newestno data-[email protected]-
GhostBSDdevel/p5-namespace-clean0.27 newestno data-[email protected]-
OPNsensedevel/p5-namespace-clean0.27 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install p5-namespace-clean

From DPorts:

cd /usr/dports/devel/p5-namespace-clean && make install clean

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

Run dependencies 3
Required by 87