namespace::clean - Keep imports and functions out of your namespace River stage four • 674 direct dependents • 7385 total dependents

Keeping packages clean 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 i...

RIBASUSHI/namespace-clean-0.27 - 18 May 2016 02:27:42 GMT

namespace::clean::xs - Keep imports and functions out of your namespace, in XS River stage zero No dependents

This module is a much faster (~30x) alternative for namespace::clean. namespace::clean spends approximately 1ms per module, so it can significantly impact startup time for a large codebase. This module tries to be a drop-in replacement for it. See na...

RANDIR/namespace-clean-xs-0.09 - 20 Nov 2017 23:00:54 GMT

namespace::clean::xs::all - Use XS for namespace::clean globally River stage zero No dependents

This module replaces namespace::clean with namespace::clean::xs globally, so you won't have to seek-and-replace usage lines. All namespace::clean pending calls are finished by the original non-xs version. Sets namespace::clean version to 0.26 to indi...

RANDIR/namespace-clean-xs-0.09 - 20 Nov 2017 23:00:54 GMT

namespace::functions - Keep package's namespace clean River stage zero No dependents

This pragma allows to collect all functions existing in package's namespace and finally delete them. The problem is that any function which is imported to your package, stays a part of public API of this package. I.e.: package My::PollutedClass; use ...

DEXTER/namespace-functions-0.0101 - 30 Jan 2011 12:08:15 GMT

namespace::lexical - like namespace::clean but instead of deleting subs, makes them lexical River stage zero No dependents

namespace::lexical works a lot like namespace::clean but rather than removing functions from your namespace, it converts them into lexical subs (like "my sub foo { ... }" on Perl 5.18 and above). namespace::lexical requires Perl 5.12 or above. API "i...

TOBYINK/namespace-lexical-0.002 - 31 Aug 2018 11:06:13 GMT

namespace::sweep - Sweep up imported subs in your classes River stage two • 14 direct dependents • 56 total dependents

Because Perl methods are just regular subroutines, it's difficult to tell what's a method and what's just an imported function. As a result, imported functions can be called as methods on your objects. This pragma will delete imported functions from ...

FRIEDO/namespace-sweep-0.006 - 15 Oct 2012 22:07:37 GMT

namespace::local - Confine imports to the current scope River stage zero No dependents

KHEDIN/namespace-local-0.02 - 27 Aug 2018 21:52:47 GMT

namespace::autoclean - Keep imports out of your namespace River stage four • 1282 direct dependents • 5671 total dependents

When you import a function into a Perl package, it will naturally also be available as a method. The "namespace::autoclean" pragma will remove all imported symbols at the end of the current package's compile cycle. Functions called in the package its...

ETHER/namespace-autoclean-0.28 - 13 Oct 2015 01:27:25 GMT

Sys::Linux::Namespace - A Module for setting up linux namespaces River stage one • 1 direct dependent • 1 total dependent

SIMCOP/Sys-Linux-Namespace-0.016 - 23 Jun 2018 07:28:30 GMT

XML::Stream::Namespace - Object to make defining Namespaces easier in XML::Stream. River stage two • 4 direct dependents • 15 total dependents

This module allows you to set and read elements from an XML::Stream Namespace....

DAPATRICK/XML-Stream-1.24 - 22 Dec 2014 20:20:19 GMT

10 results (0.058 seconds)