BSD Ports

devel/p5-namespace-clean 0.27 FreeBSD

Keep imports and functions out of your namespace

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
13.8 KiB, 26.2 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
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
DragonFlydevel/p5-namespace-clean0.27 newestnone known-[email protected]-
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 the ports tree:

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

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

RUN_DEPENDS=	p5-namespace-clean>0:devel/p5-namespace-clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.270.270.270.270.27
FreeBSD:14:quarterly0.270.27n/a0.270.27
FreeBSD:15:latest0.270.27n/a0.270.27
FreeBSD:15:quarterly0.270.27n/an/an/a
FreeBSD:16:latest0.270.27n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

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

As this port's Makefile names them.

Build 2

Runtime 2

The full lists below include those, and their dependencies in turn.

Build dependencies 14
Run dependencies 14
Required by 670

The first 100 are listed.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 3
  • %%SITE_PERL%%/namespace/clean.pm
  • %%SITE_PERL%%/namespace/clean/_Util.pm
  • %%PERL5_MAN3%%/namespace::clean.3.gz
distinfo 1
FileSizeSHA256
namespace-clean-0.27.tar.gz178018a10a83c3e183dc78f9e7b7aa4d09b47c11fb4e7d3a33b9a12912fd22e31af9d
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.