How to install perl-namespace-clean on AlmaLinux, Rocky Linux, Oracle Linux and RHEL

Keep your namespace tidy

License: GPL+ or Artistic Vendor: Fedora Project http://search.cpan.org/dist/namespace-clean/

Availability

Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.

Distro Channel noarch Version
RHEL 7 Base 0.24

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.

Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Install

Base RHEL 7

perl-namespace-clean on CentOS 7 / RHEL 7

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install perl-namespace-clean

Package downloads require an active GetPageSpeed subscription — one repository for perl-namespace-clean and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Subscribe — from $10/mo

Frequently asked questions

How do I install perl-namespace-clean on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?

Add the GetPageSpeed repository, then install the perl-namespace-clean package with your system package manager.

Which Enterprise Linux versions is perl-namespace-clean available for?

perl-namespace-clean is available for RHEL 7.

Subscribe