libimport-into-perl 1.002005-ok2 source package in openKylin
Changelog
libimport-into-perl (1.002005-ok2) yangtze; urgency=medium * Update version. -- zhouganqing <email address hidden> Tue, 16 Aug 2022 16:28:26 +0800
libimport-into-perl (1.002005-ok2) yangtze; urgency=medium * Update version. -- zhouganqing <email address hidden> Tue, 16 Aug 2022 16:28:26 +0800
Series | Published | Component | Section | |
---|---|---|---|---|
Huanghe V3.0 | release | main | perl | |
Nile V2.0 | release | main | perl | |
Yangtze V1.0 | release | main | perl |
File | Size | SHA-256 Checksum |
---|---|---|
libimport-into-perl_1.002005.orig.tar.gz | 7.6 KiB | bd9e77a3fb662b40b43b18d3280cd352edf9fad8d94283e518181cc1ce9f0567 |
libimport-into-perl_1.002005-ok2.debian.tar.xz | 1.9 KiB | 8dbbe9e015f474ca8bca49212606c7c06067938b8c8918f4f73a9b4b485fdd96 |
libimport-into-perl_1.002005-ok2.dsc | 1.9 KiB | f2a4b30b7a285bb022a6a81aa052720b5fb13a37ce36d95ebf08cac0f99ccbe5 |
Import::Into creates a global method import::into which you can call on
any package to import it into another package. This is useful because
there are many different ways to write exporters: some use Exporter, some
use Sub::Exporter, some use Moose::Exporter, some use Exporter::Declare
and some things are pragmas.
.
And if you want to re-export other things, you have to know which is which.
Exporter subclasses provide export_to_level, but if they overrode their
import method all bets are off. Sub::Exporter provides an into parameter
but figuring out something used it isn't trivial. Pragmas need to have
their import method called directly since they affect the current unit of
compilation. Import::Into can be used to import packages into other packages
without having to deal with the specific details of every exporting approach.