Name : perl-Exporter-Lite
| |
Version : 0.08
| Vendor : obs://build_opensuse_org/home:sbahling
|
Release : 2.1
| Date : 2018-06-07 19:19:52
|
Group : Development/Libraries/Perl
| Source RPM : perl-Exporter-Lite-0.08-2.1.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : lightweight exporting of functions and variables
|
Description :
Exporter::Lite is an alternative to Exporter, intended to provide a lightweight subset of the most commonly-used functionality. It supports \'import()\', \'AATTEXPORT\' and \'AATTEXPORT_OK\' and not a whole lot else.
Unlike Exporter, it is not necessary to inherit from Exporter::Lite; Ie you don\'t need to write:
AATTISA = qw(Exporter::Lite);
Exporter::Lite simply exports its import() function into your namespace. This might be called a \"mix-in\" or a \"role\".
Setting up a module to export its variables and functions is simple:
package My::Module; use Exporter::Lite;
our AATTEXPORT = qw($Foo bar);
Functions and variables listed in the \'AATTEXPORT\' package variable are automatically exported if you use the module and don\'t explicitly list any imports. Now, when you \'use My::Module\', \'$Foo\' and \'bar()\' will show up.
Optional exports are listed in the \'AATTEXPORT_OK\' package variable:
package My::Module; use Exporter::Lite;
our AATTEXPORT_OK = qw($Foo bar);
When My::Module is used, \'$Foo\' and \'bar()\' will _not_ show up, unless you explicitly ask for them:
use My::Module qw($Foo bar);
Note that when you specify one or more functions or variables to import, then you must also explicitly list any of the default symbols you want to use. So if you have an exporting module:
package Games; our AATTEXPORT = qw/ pacman defender /; our AATTEXPORT_OK = qw/ galaga centipede /;
Then if you want to use both \'pacman\' and \'galaga\', then you\'d write:
use Games qw/ pacman galaga /;
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/sbahling:/Backports:/SLE-15/SLE_15/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(Exporter::Lite)
perl-Exporter-Lite
Requires :