Logoj0ke.net Open Build Service > Projects > server:monitoring > nagios-plugins-nwc-health > Binaries > nagios-plugins-nwc-health-8... > Dependencies
Sign Up | Log In

Dependency of nagios-plugins-nwc-health-8.0-1.1.src.rpm

Name: perl-namespace-autoclean

Project: openSUSE_13.2

Repository: oss

Title: Keep imports out of your namespace

Description:
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
itself will still be bound by their name, but they won't show up as methods
on your class or instances.

This module is very similar to namespace::clean, except it will clean all
imported functions, no matter if you imported them before or after you
'use'd the pragma. It will also not touch anything that looks like a
method, according to 'Class::MOP::Class::get_method_list'.

If you're writing an exporter and you want to clean up after yourself (and
your peers), you can use the '-cleanee' switch to specify what package to
clean:

package My::MooseX::namespace::autoclean;
use strict;

use namespace::autoclean (); # no cleanup, just load

sub import {
namespace::autoclean->import(
-cleanee => scalar(caller),
);
}

Version: 0.19

Release: 2.1.3

Architecture: noarch

Size: 21.9 KB

Build Time: 2014-10-06 18:12:05 +0200 (over 9 years ago)

Requires

Symbol Provided by
perl(:MODULE_COMPAT_5.20.1) perl
perl(B::Hooks::EndOfScope) ... perl-B-Hooks-EndOfScope
perl(List::Util) perl-base-32bit perl-base perl-Scalar-List-Utils
perl(Sub::Identify) perl-Sub-Identify
perl(namespace::clean) >= 0.20 perl-namespace-clean