Lightweight exporting of variables

Edit Package perl-Exporter-Lite

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)'.

Refresh
Refresh
Source Files
Filename Size Changed
Exporter-Lite-0.09.tar.gz 0000006859 6.7 KB
cpanspec.yml 0000000547 547 Bytes
perl-Exporter-Lite.changes 0000002289 2.24 KB
perl-Exporter-Lite.spec 0000002402 2.35 KB
Latest Revision
Yuchen Lin's avatar Yuchen Lin (maxlin_factory) accepted request 996523 from Yuchen Lin's avatar Yuchen Lin (maxlin_factory) (revision 3)
Automatically create request by update submitter.                This is going to update package to openSUSE:Backports:SLE-15-SP5 from openSUSE:Factory.                Please review this change and decline it if Leap do not need it.
Comments 0
openSUSE Build Service is sponsored by