Name : perl-Exporter-Lite
| |
Version : 0.09
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 22.42
| Date : 2022-03-05 04:06:08
|
Group : Unspecified
| Source RPM : perl-Exporter-Lite-0.09-22.42.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.
Exporter::Lite simply exports its import() function into your namespace. This might be called a \"mix-in\" or a \"role\".
When \'Exporter::Lite\' was written, if you wanted to use \'Exporter\' you had to write something like this:
use Exporter; our AATTISA = qw/ Exporter /;
\'Exporter::Lite\' saved you from writing that second line. But since before 2010 you\'ve been able to write:
use Exporter qw/ import /;
Which imports the \'import\' function into your namespace from \'Exporter\'. As a result, I would recommend that you use \'Exporter\' now, as it\'s a core module (shipped with Perl).
To make sure you get a version of \'Exporter\' that supports the above usage, specify a minimum version when you \'use\' it:
use Exporter 5.57 qw/ import /;
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/noarch |