Dependency of nagios-plugins-nwc-health-8.0-1.1.src.rpm
Name: perl-Exporter-Lite
Project: openSUSE_13.2
Repository: oss
Title: Lightweight exporting of variables
Description:
This is an alternative to Exporter intended to provide a lightweight subset
of its functionality. It supports 'import()', '@EXPORT' and '@EXPORT_OK'
and not a whole lot else.
Unlike Exporter, it is not necessary to inherit from Exporter::Lite (ie. no
'@ISA = qw(Exporter::Lite)' mantra). Exporter::Lite simply exports its
import() function. This might be called a "mix-in".
Setting up a module to export its variables and functions is simple:
package My::Module;
use Exporter::Lite;
@EXPORT = qw($Foo bar);
now when you 'use My::Module', '$Foo' and 'bar()' will show up.
In order to make exporting optional, use @EXPORT_OK.
package My::Module;
use Exporter::Lite;
@EXPORT_OK = qw($Foo bar);
when My::Module is used, '$Foo' and 'bar()' will _not_ show up. You have to
ask for them. 'use My::Module qw($Foo bar)'.
Version: 0.02
Release: 12.1.3
Architecture: noarch
Size: 9.82 KB
Build Time: 2014-10-06 15:17:25 +0200 (over 9 years ago)
Provides
Symbol | Required by |
---|---|
perl(Exporter::Lite) = 0.02 | perl-Time-Duration-Parse |
perl-Exporter-Lite = 0.02-1... |
Requires
Symbol | Provided by |
---|---|
perl(:MODULE_COMPAT_5.20.1) | perl |