| 1 |
Source: libexporter-lite-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Ansgar Burchardt <[email protected]>, |
| 4 |
Florian Schlichting <[email protected]> |
| 5 |
Section: perl |
| 6 |
Testsuite: autopkgtest-pkg-perl |
| 7 |
Priority: optional |
| 8 |
Build-Depends: debhelper-compat (= 13) |
| 9 |
Build-Depends-Indep: perl |
| 10 |
Standards-Version: 4.6.0 |
| 11 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libexporter-lite-perl |
| 12 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libexporter-lite-perl.git |
| 13 |
Homepage: https://metacpan.org/release/Exporter-Lite |
| 14 |
Rules-Requires-Root: no |
| 15 |
|
| 16 |
Package: libexporter-lite-perl |
| 17 |
Architecture: all |
| 18 |
Depends: ${misc:Depends}, |
| 19 |
${perl:Depends} |
| 20 |
Multi-Arch: foreign |
| 21 |
Description: lightweight subset of Exporter |
| 22 |
Exporter::Lite is an alternative to Exporter, intended to provide a |
| 23 |
lightweight subset of the most commonly-used functionality. It supports |
| 24 |
import(), @EXPORT and @EXPORT_OK and not a whole lot else. |
| 25 |
. |
| 26 |
Exporter::Lite simply exports its import() function into your namespace. |
| 27 |
This might be called a "mix-in" or a "role". |
| 28 |
. |
| 29 |
When Exporter::Lite was written, if you wanted to use Exporter you had to |
| 30 |
write something like this: |
| 31 |
. |
| 32 |
use Exporter; |
| 33 |
our @ISA = qw/ Exporter /; |
| 34 |
. |
| 35 |
Exporter::Lite saved you from writing that second line. |
| 36 |
But since before 2010 you've been able to write: |
| 37 |
. |
| 38 |
use Exporter qw/ import /; |
| 39 |
. |
| 40 |
which imports the import function into your namespace from Exporter. |
| 41 |
. |
| 42 |
As a result, it is recommended to use Exporter now, |
| 43 |
as it's a core module (shipped with Perl). |