Exherbo
GitLab
Packages
dev-perl/namespace-clean
Keep imports and functions out of your namespace.
Versions
Slot
Version
Repository
Platforms
0
0.27
perl
~amd64
arm?
~armv7
armv8?
~x86
Metadata
Homepage
https://metacpan.org/release/namespace-clean/
Summary
Keep imports and functions out of your namespace
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.
Upstream changelog
https://metacpan.org/changes/distribution/namespace-clean
Dependencies
(
(
build+run:
dev-perl/B-Hooks-EndOfScope[>=0.12]
dev-perl/Package-Stash[>=0.23]
)
(
build+run:
dev-lang/perl:=
)
)
Downloads
mirror://cpan/authors/id/R/RI/RIBASUSHI/namespace-clean-0.27.tar.gz
Licences
|| (
Artistic
GPL-1
GPL-2
GPL-3
)