./devel/p5-Import-Into, Perl5 module to import packages into other packages

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2016Q2, Version: 1.002005nb1, Package name: p5-Import-Into-1.002005nb1, Maintainer: pkgsrc-users

Writing exporters is a pain. Some use Exporter, some use Sub::Exporter,
some use Moose::Exporter, some use Exporter::Declare ... and some things
are pragmas.

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.

It's ... annoying.

However, there is an approach that actually works for all of these types.


Required to build:
[devel/p5-Module-Runtime]

Master sites: (Expand)

SHA1: ae123af669e064168ae0371c020d88335d92c8a3
RMD160: 65825c1b0854120faed3415e3d7e28538bac71cf
Filesize: 7.566 KB

Version history: (Expand)